-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix: process exit in windows (#498)
- Loading branch information
1 parent
6bcb620
commit f995504
Showing
15 changed files
with
177 additions
and
87 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
apps/shinkai-desktop/src-tauri/src/commands/shinkai_node_manager_commands.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
apps/shinkai-desktop/src-tauri/src/global_shortcuts/create_chat.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
apps/shinkai-desktop/src-tauri/src/global_shortcuts/toggle_spotlight.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
use tauri::Manager; | ||
use tauri_plugin_global_shortcut::{Shortcut, ShortcutEvent}; | ||
|
||
use crate::windows::{show_or_recreate_window, Window}; | ||
use crate::windows::{recreate_window, Window}; | ||
|
||
pub fn toggle_spotlight(app: &tauri::AppHandle, _: Shortcut, _: ShortcutEvent) { | ||
log::info!("toggling spotlight window"); | ||
if let Some(spotlight_window) = app.get_webview_window(Window::Spotlight.as_str()) { | ||
if spotlight_window.is_visible().unwrap_or(false) && spotlight_window.is_focused().unwrap_or(false) { | ||
let _ = spotlight_window.hide(); | ||
return; | ||
} | ||
} | ||
show_or_recreate_window(app.clone(), Window::Spotlight) | ||
recreate_window(app.clone(), Window::Spotlight, true) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.