[GH-ISSUE #20] TrayMenu properties in items map aren't updated on MenuDiff event #8

Closed
opened 2026-05-22 22:04:47 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @Levizor on GitHub (Feb 23, 2025).
Original GitHub issue: https://github.com/JakeStanger/system-tray/issues/20

When we receive MenuDiff update, the differences that it provides are not applied to the state of the corresponding value in items map. TrayMenu properties don't change at this update and hold outdated information.

Seemingly items aren't edited for this specific Update variant, while they're updated with LayoutUpdatedStream in Client::watch_menu .

But in some cases only properties of menu change, which doesn't trigger this layout update. (Found with telegram Enable/Disable notifications toggle button).

Originally created by @Levizor on GitHub (Feb 23, 2025). Original GitHub issue: https://github.com/JakeStanger/system-tray/issues/20 When we receive MenuDiff update, the differences that it provides are not applied to the state of the corresponding value in items map. TrayMenu properties don't change at this update and hold outdated information. Seemingly items aren't edited for this specific Update variant, while they're updated with LayoutUpdatedStream in ```Client::watch_menu ```. But in some cases only properties of menu change, which doesn't trigger this layout update. (Found with telegram Enable/Disable notifications toggle button).
Author
Owner

@Levizor commented on GitHub (Feb 26, 2025):

Now I also notices that watch_item_properties also doesn't have any impact on items, so items map is again not up to date.

<!-- gh-comment-id:2685328627 --> @Levizor commented on GitHub (Feb 26, 2025): Now I also notices that ```watch_item_properties``` also doesn't have any impact on items, so items map is again not up to date.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/system-tray#8
No description provided.