Add system tray icon (Show/Hide/Refresh/Quit; left-click restores window)

Solves the 'lost window' problem — if the widget gets dragged off-screen
or hidden behind other apps, users can recover it via the tray.

Enables tauri 'tray-icon' feature; tray runs entirely Rust-side so no
new JS capabilities needed.
This commit is contained in:
megaproxy 2026-05-09 14:47:03 +01:00
parent 9be856d37c
commit 79fc144235
3 changed files with 75 additions and 1 deletions

View file

@ -14,7 +14,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri = { version = "2", features = ["tray-icon"] }
tauri-plugin-autostart = "2"
tauri-plugin-store = "2"
tauri-plugin-dialog = "2"