Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Fix tray exception when multiple windows#1487

Merged
eliandoran merged 6 commits intodevelopfrom
tray
Mar 26, 2025
Merged

Fix tray exception when multiple windows#1487
eliandoran merged 6 commits intodevelopfrom
tray

Conversation

@SiriusXT
Copy link
Copy Markdown
Member

@SiriusXT SiriusXT commented Mar 21, 2025

When multiple windows are created, the tray functionality only works for the main window. When the main window is closed and only additional windows remain, the tray functionality will break.

The changes include:

  1. Monitor all windows, and the tray functionality will default to the last focused window.
  2. Allow showing/hiding each individual window.
  3. Clicking the tray icon will show/hide the last focused window.
  4. Add the ability to open a new window.
  5. Fix for [issue TriliumNext/trilium#5551](Restore the existing window (if minimized in System Tray) when a new application instance is launched Trilium#5551).

I don't know where to find and convert the PNG for open new window; I downloaded it from www.iconfinder.com.

图片

@eliandoran eliandoran merged commit 84d75c3 into develop Mar 26, 2025
4 of 5 checks passed
@eliandoran eliandoran deleted the tray branch March 26, 2025 17:32
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore the existing window (if minimized in System Tray) when a new application instance is launched

2 participants