apprt/gtk: hook up open config

This commit is contained in:
Mitchell Hashimoto
2023-12-18 08:04:24 -08:00
parent 7600c761ef
commit 2c311ab369

View File

@ -217,6 +217,11 @@ pub fn terminate(self: *App) void {
self.config.deinit(); 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. /// Reload the configuration. This should return the new configuration.
/// The old value can be freed immediately at this point assuming a /// The old value can be freed immediately at this point assuming a
/// successful return. /// successful return.