Skip to content

Fix tray visibility toggle crash#5839

Merged
ComputelessComputer merged 1 commit into
mainfrom
fix/hide-tray-icon-crash
Jul 1, 2026
Merged

Fix tray visibility toggle crash#5839
ComputelessComputer merged 1 commit into
mainfrom
fix/hide-tray-icon-crash

Conversation

@ComputelessComputer

@ComputelessComputer ComputelessComputer commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Use Tauri tray visibility APIs instead of removing the tray icon from the IPC worker thread.


Note

Low Risk
Localized tray plugin behavior change with no auth, data, or security impact; reduces risk of thread-related crashes compared to remove/recreate.

Overview
Fixes a crash when toggling tray visibility from the IPC path by keeping the tray icon registered and using Tauri’s visibility APIs instead of tearing it down.

When showing the tray, set_visible now reuses an existing icon (tray.set_visible(true)) and only calls create_tray_menu() if none exists. When hiding, it stops the recording animation as before, then hides via tray.set_visible(false) rather than remove_tray_by_id.

Reviewed by Cursor Bugbot for commit 069378d. Bugbot is set up for automated code reviews on this repo. Configure here.

Use Tauri tray visibility APIs instead of removing the tray icon from the IPC worker thread.
@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for old-char canceled.

Name Link
🔨 Latest commit 069378d
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a44d215176aef00089d6109

@ComputelessComputer ComputelessComputer merged commit 4cd0bb8 into main Jul 1, 2026
10 checks passed
@ComputelessComputer ComputelessComputer deleted the fix/hide-tray-icon-crash branch July 1, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant