🚧 trayIcon doing

This commit is contained in:
Tw93
2024-12-10 17:23:57 +08:00
parent 7a6e21ed0f
commit 188f69cf7d
2 changed files with 1 additions and 5 deletions

View File

@@ -28,6 +28,7 @@ pub fn set_system_tray(app: &AppHandle) -> tauri::Result<()> {
}
_ => (),
})
.icon(app.default_window_icon().unwrap().clone())
.build(app)?;
tray.set_icon_as_template(false)?;

View File

@@ -7,11 +7,6 @@
"security": {
"csp": null
},
"trayIcon": {
"iconPath": "png/icon_512.png",
"iconAsTemplate": false,
"id": "pake-tray"
},
"withGlobalTauri": true
},
"build": {