From 2c311ab369071986d9803b3ab71f810bc73196fd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 18 Dec 2023 08:04:24 -0800 Subject: [PATCH] apprt/gtk: hook up open config --- src/apprt/gtk/App.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apprt/gtk/App.zig b/src/apprt/gtk/App.zig index caae5669e..d746f2d8a 100644 --- a/src/apprt/gtk/App.zig +++ b/src/apprt/gtk/App.zig @@ -217,6 +217,11 @@ pub fn terminate(self: *App) void { self.config.deinit(); } +/// Open the configuration in the system editor. +pub fn openConfig(self: *App) !void { + try configpkg.edit.open(self.core_app.alloc); +} + /// Reload the configuration. This should return the new configuration. /// The old value can be freed immediately at this point assuming a /// successful return.