diff --git a/easytier-gui/src-tauri/src/lib.rs b/easytier-gui/src-tauri/src/lib.rs index d7224fa..7083867 100644 --- a/easytier-gui/src-tauri/src/lib.rs +++ b/easytier-gui/src-tauri/src/lib.rs @@ -381,6 +381,10 @@ pub fn run() { toggle_window_visibility(app); } }) + .icon(tauri::image::Image::from_bytes(include_bytes!( + "../icons/icon.png" + ))?) + .icon_as_template(false) .build(app)?; Ok(()) diff --git a/easytier-gui/src-tauri/tauri.conf.json b/easytier-gui/src-tauri/tauri.conf.json index b91d96a..d0052af 100644 --- a/easytier-gui/src-tauri/tauri.conf.json +++ b/easytier-gui/src-tauri/tauri.conf.json @@ -21,11 +21,6 @@ "identifier": "com.kkrainbow.easytier", "plugins": {}, "app": { - "trayIcon": { - "iconPath": "icons/icon.ico", - "menuOnLeftClick": true, - "iconAsTemplate": true - }, "windows": [ { "title": "easytier-gui",