🚧 trayIcon doing
This commit is contained in:
@@ -28,6 +28,7 @@ pub fn set_system_tray(app: &AppHandle) -> tauri::Result<()> {
|
|||||||
}
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
})
|
})
|
||||||
|
.icon(app.default_window_icon().unwrap().clone())
|
||||||
.build(app)?;
|
.build(app)?;
|
||||||
|
|
||||||
tray.set_icon_as_template(false)?;
|
tray.set_icon_as_template(false)?;
|
||||||
|
|||||||
@@ -7,11 +7,6 @@
|
|||||||
"security": {
|
"security": {
|
||||||
"csp": null
|
"csp": null
|
||||||
},
|
},
|
||||||
"trayIcon": {
|
|
||||||
"iconPath": "png/icon_512.png",
|
|
||||||
"iconAsTemplate": false,
|
|
||||||
"id": "pake-tray"
|
|
||||||
},
|
|
||||||
"withGlobalTauri": true
|
"withGlobalTauri": true
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
|
|||||||
Reference in New Issue
Block a user