feat(win32 gui): add gui_config.json config file

This commit is contained in:
CJ van den Berg 2025-01-08 12:51:35 +01:00
parent 6d7a316abb
commit eaa7ad87b7
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
6 changed files with 40 additions and 21 deletions

View file

@ -378,7 +378,7 @@ const cmds = struct {
pub const open_help_meta = .{ .description = "Open help" };
pub fn open_config(_: *Self, _: Ctx) Result {
const file_name = try root.get_config_file_name();
const file_name = try root.get_config_file_name(@TypeOf(tui.current().config));
try tp.self_pid().send(.{ "cmd", "navigate", .{ .file = file_name } });
}
pub const open_config_meta = .{ .description = "Edit configuration file" };