添加重启和退出快捷键

This commit is contained in:
2025-11-25 02:44:54 +08:00
parent b45eea11fa
commit a26a903a19
3 changed files with 13 additions and 1 deletions

View File

@@ -16,3 +16,12 @@ void spawn(const user_action_arg_t *arg) {
g_spawn_command_line_async((const char *)arg->ptr, nullptr);
}
void quit(const user_action_arg_t *arg) {
const bool restart = arg->b;
if (restart) {
wm_restart();
} else {
wm_quit();
}
}