disable hotkeys if initial registration fails

This commit is contained in:
jfmonty2 committed 2023-10-09 08:50:31 -07:00
1 parent 2079f99d04
commit 1b749a857c
4 files changed
+15 -4

No files matched your search

+7
View File
@@ -33,6 +33,13 @@ pub struct HotkeysConfig {
pub launch_terminal: Hotkey,
}
impl HotkeysConfig {
pub fn disable_all(&mut self) {
self.show_window.enabled = false;
self.launch_terminal.enabled = false;
}
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct AppConfig {