disable hotkeys if initial registration fails
This commit is contained in:
1 parent
2079f99d04
commit
1b749a857c
4 files changed
+15
-4
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user