fix(desktop): make action key settable even if custom shortcuts file is not set yet
This commit is contained in:
parent
fc0e0458cf
commit
d2cdadbd7f
1 changed files with 1 additions and 3 deletions
|
|
@ -225,9 +225,7 @@ fn super_key_set(action: shortcuts::action::System) {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
let Ok(mut shortcuts) = config.get::<Shortcuts>("custom") else {
|
let mut shortcuts = config.get::<Shortcuts>("custom").unwrap_or_default();
|
||||||
return;
|
|
||||||
};
|
|
||||||
|
|
||||||
shortcuts.0.insert(
|
shortcuts.0.insert(
|
||||||
Binding::new(shortcuts::Modifiers::new().logo(), None),
|
Binding::new(shortcuts::Modifiers::new().logo(), None),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue