mirror of
https://github.com/JakeStanger/system-tray.git
synced 2026-07-11 05:15:55 +01:00
[GH-ISSUE #20] TrayMenu properties in items map aren't updated on MenuDiff event #8
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/system-tray#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).
@Levizor commented on GitHub (Feb 26, 2025):
Now I also notices that
watch_item_propertiesalso doesn't have any impact on items, so items map is again not up to date.aboutToShow#2