Skip to content

Commit 03d6f12

Browse files
committed
init
1 parent d251294 commit 03d6f12

11 files changed

Lines changed: 7 additions & 520 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 518 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "1.0.1"
44
edition = "2021"
55

66
[dependencies]
7-
tauri = { version = "1.7.1", features = [ "system-tray", "shell-open", "wry", "updater" ] }
7+
tauri = { version = "1.7.1", features = [ "system-tray", "shell-open", "wry"] }
88
serde = { version = "1.0.204", features = ["derive"] }
99
serde_json = "1.0.120"
1010
dirs = "5.0.1"

icons/128x128.png

-3.81 KB
Loading

icons/128x128@2x.png

-11.8 KB
Loading

icons/256x256.png

-11.8 KB
Loading

icons/32x32.png

-288 Bytes
Loading

icons/icon.icns

-196 KB
Binary file not shown.

icons/icon.ico

-17.4 KB
Binary file not shown.

icons/icon.png

-10.9 KB
Loading

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ fn main() {
415415
let system_tray_menu = create_system_tray_menu();
416416

417417
let app = tauri::Builder::default()
418+
.setup(|app|
419+
Ok(app.set_activation_policy(tauri::ActivationPolicy::Accessory))
420+
)
418421
.system_tray(SystemTray::new().with_menu(system_tray_menu))
419422
.on_system_tray_event(move |app, event| {
420423
if let SystemTrayEvent::MenuItemClick { id, .. } = event {

0 commit comments

Comments
 (0)