Skip to content

fix(tray): a Linux menu item keeps no label of the item before it - #272

Merged
7schmiede merged 1 commit into
mainfrom
fix/tray-linux-stable-menu-ids
Oct 24, 2026
Merged

7schmiede merged 1 commit into
mainfrom
fix/tray-linux-stable-menu-ids

Conversation

@7schmiede

Copy link
Copy Markdown
Member

On GNOME (AppIndicator extension) the tray showed a second, greyed Quit Tray after a stack was started from it.

Cause: the dbusmenu items were numbered by position. A growing submenu moved Quit Tray to the next id; the extension keeps an item whose id it knows with its cached properties, so the separator that took the old id kept the label.

Fix: each new layout numbers its items after the previous layout's (wrapping to 0 long before i32::MAX), so an id never names another item. Windows and macOS build their menus differently and are not affected.

Test: a_new_layout_reuses_no_id.

🤖 Generated with Claude Code

The dbusmenu items were numbered by position. When a stack started, its
submenu grew and `Quit Tray` moved to the next id; GNOME's AppIndicator
extension keeps an item whose id it knows with the properties it had, so
the separator that took the old id showed a second, greyed `Quit Tray`.

Each new layout now numbers its items after the old one's, so no id
names another item than before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit abff488 into main Oct 24, 2026
13 checks passed
@7schmiede
7schmiede deleted the fix/tray-linux-stable-menu-ids branch October 24, 2026 08:42
@7schmiede 7schmiede mentioned this pull request Oct 26, 2026
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