Skip to content

Reconstruct menu model every time we show it#964

Merged
jeremypw merged 1 commit into
mainfrom
lenemter/fix-menu-model
Dec 2, 2025
Merged

Reconstruct menu model every time we show it#964
jeremypw merged 1 commit into
mainfrom
lenemter/fix-menu-model

Conversation

@lenemter

Copy link
Copy Markdown
Member

GLib.Menu documentation specifically states that items are copied into the menu and should not be used after. So instead of removing and adding show in menu item, it would be easier and cleaner to just always rebuild the menu

@lenemter lenemter requested a review from a team November 29, 2025 20:27

@jeremypw jeremypw left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense and saves some lines.

@jeremypw jeremypw merged commit a23c9d8 into main Dec 2, 2025
4 checks passed
@jeremypw jeremypw deleted the lenemter/fix-menu-model branch December 2, 2025 10:59
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.

2 participants