Introduces a property so that triggering leaf categories doesn't change the
state of the menu.
Introduces a function so the application can reset the menu to its initial state
Details
Details
- Reviewers
mart - Group Reviewers
Kirigami - Commits
- R169:dd4173055e14: Let the application control the menu further
Diff Detail
Diff Detail
- Repository
- R169 Kirigami
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage
Comment Actions
To provide some context:
Discover now switched to use the sidebar as a navigation menu, controlling which category of applications to show in the main window.
If clicking a menu item went back to the top level, the menu would not correspond to what's shown anymore.
The property is introduced because the default behavior for the menu global drawer / sidebar is still executing actions, in which case going back to the top menu afterwards makes sense.
src/controls/GlobalDrawer.qml | ||
---|---|---|
184 | resetMenuOnTriggered? |
Comment Actions
almost good to go
src/controls/GlobalDrawer.qml | ||
---|---|---|
369 ↗ | (On Diff #6477) | you renamed the property to resetOnMenuTriggered, so this should be updated as well |