diff --git a/src-tauri/src/app/menu.rs b/src-tauri/src/app/menu.rs index bce364a71..d2b42015b 100644 --- a/src-tauri/src/app/menu.rs +++ b/src-tauri/src/app/menu.rs @@ -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)?; diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 0e4abe02a..e1aba949d 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,11 +7,6 @@ "security": { "csp": null }, - "trayIcon": { - "iconPath": "png/icon_512.png", - "iconAsTemplate": false, - "id": "pake-tray" - }, "withGlobalTauri": true }, "build": {