mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-08-31 03:07:23 +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(),
|
||||
)?;
|
||||
|
||||
app.global_shortcut().register(spotlight_shortcut)?;
|
||||
if !app.global_shortcut().is_registered(spotlight_shortcut) {
|
||||
app.global_shortcut().register(spotlight_shortcut)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue