mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-09-13 17:36:34 +00:00
fix: conditionally register global shortcut
This commit is contained in:
parent
4effac66f7
commit
be460d268f
1 changed files with 3 additions and 1 deletions
|
@ -184,7 +184,9 @@ fn setup_global_shortcut(app: &mut tauri::App) -> Result<(), Box<dyn std::error:
|
||||||
.build(),
|
.build(),
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
|
if !app.global_shortcut().is_registered(spotlight_shortcut) {
|
||||||
app.global_shortcut().register(spotlight_shortcut)?;
|
app.global_shortcut().register(spotlight_shortcut)?;
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue