Skip to content

Commit 18e44ad

Browse files
committed
Fix duplicate system tray icon and bump version to 0.2.0
Remove declarative trayIcon from tauri.conf.json that conflicted with the programmatic tray built in tray.rs. Add icon_as_template(true) to preserve macOS menu bar theme adaptation. Bump version to 0.2.0.
1 parent 1b8b1bd commit 18e44ad

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "termina",
3-
"version": "1.0.0",
3+
"version": "0.2.0",
44
"description": "A lightweight macOS app for managing long-running shell commands",
55
"type": "module",
66
"scripts": {

src-tauri/src/tray.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub fn create_tray(app: &tauri::AppHandle) -> tauri::Result<()> {
1010

1111
TrayIconBuilder::with_id("main")
1212
.icon(app.default_window_icon().unwrap().clone())
13+
.icon_as_template(true)
1314
.menu(&menu)
1415
.show_menu_on_left_click(true)
1516
.on_menu_event(|app, event| {

src-tauri/tauri.conf.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
33
"productName": "Termina",
4-
"version": "0.1.0",
4+
"version": "0.2.0",
55
"identifier": "com.termina.manager",
66
"build": {
77
"frontendDist": "../dist",
@@ -23,10 +23,6 @@
2323
"hiddenTitle": true
2424
}
2525
],
26-
"trayIcon": {
27-
"iconPath": "icons/icon.png",
28-
"iconAsTemplate": true
29-
},
3026
"security": {
3127
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' asset: https://asset.localhost"
3228
}

0 commit comments

Comments
 (0)