Skip to content

Commit

Permalink
fix: focus window on show menu item click
Browse files Browse the repository at this point in the history
  • Loading branch information
hoax committed Oct 18, 2024
1 parent 7555aa1 commit f37710e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scribe"
version = "0.5.1"
version = "0.5.2"
description = "A note taking app with seamless user experience"
authors = ["HoaX7"]
license = ""
Expand Down
1 change: 1 addition & 0 deletions app/src-tauri/src/tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub fn make_tray() -> SystemTray {
fn show_main_window(app: &AppHandle) -> Window {
let window = app.get_window(MAIN_WINDOW_LABEL).unwrap();
window.show().unwrap();
window.set_focus().unwrap();
window
}

Expand Down
2 changes: 1 addition & 1 deletion app/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "scribe",
"version": "0.5.1"
"version": "0.5.2"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit f37710e

Please sign in to comment.