mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-05-20 17:47:19 +00:00
Fix tray icon: load icon explicitly, remove config-based tray to avoid conflict
This commit is contained in:
parent
8b6119639c
commit
1348a4e23a
2 changed files with 4 additions and 5 deletions
|
|
@ -90,7 +90,11 @@ fn build_tray_tauri(app: &AppHandle) -> tauri::Result<()> {
|
|||
let quit = MenuItem::with_id(app, "quit", "Quit CodeBurn", true, None::<&str>)?;
|
||||
let menu = Menu::with_items(app, &[&refresh, &report, &quit])?;
|
||||
|
||||
let icon = tauri::image::Image::from_bytes(include_bytes!("../icons/icon.png"))
|
||||
.expect("failed to load tray icon");
|
||||
|
||||
TrayIconBuilder::with_id("codeburn-tray")
|
||||
.icon(icon)
|
||||
.tooltip("CodeBurn")
|
||||
.menu(&menu)
|
||||
.show_menu_on_left_click(false)
|
||||
|
|
|
|||
|
|
@ -27,11 +27,6 @@
|
|||
],
|
||||
"security": {
|
||||
"csp": "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self' data:; connect-src 'self' ipc: https://api.frankfurter.app"
|
||||
},
|
||||
"trayIcon": {
|
||||
"id": "codeburn-tray",
|
||||
"iconPath": "icons/tray.png",
|
||||
"iconAsTemplate": true
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue