reload_config keybinding (defaults to ctrl+alt+super+space)

This commit is contained in:
Mitchell Hashimoto
2023-03-13 22:00:10 -07:00
parent a9928cfb90
commit f5c1dfa374
4 changed files with 20 additions and 0 deletions

View File

@@ -135,7 +135,9 @@ fn drainMailbox(self: *App, rt_app: *apprt.App) !void {
}
fn reloadConfig(self: *App, rt_app: *apprt.App) !void {
log.debug("reloading configuration", .{});
if (try rt_app.reloadConfig()) |new| {
log.debug("new configuration received, applying", .{});
try self.updateConfig(new);
}
}