Commit 55fe372c authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈 Committed by Nate Graham
Browse files

Push NewStuff pages to layers, not the stack

The NewStuff.Action component will simply call the push function on
whatever object it is given to work with as a page stack, and since the
Kirigami pagestack layers also has one such, we can just switch to that.

nb: The functionality is explicitly designed to work this way, to allow for
things like the kcm pagestack to work as well as the more featureful
Kirigami one.

BUG:437961


(cherry picked from commit 768f8ad5)
parent 2589e730
......@@ -85,7 +85,7 @@ Kirigami.ApplicationWindow {
id: ghnsAction
text: i18nc("@action:inmenu", "Get New Pages...")
configFile: "plasma-systemmonitor.knsrc"
pageStack: app.pageStack
pageStack: app.pageStack.layers
onChangedEntriesChanged: {
pagesModel.ghnsEntriesChanged(engine.changedEntries)
}
......
......@@ -42,7 +42,7 @@ Kirigami.ScrollablePage {
NewStuff.Action {
text: i18nc("@action", "Get new presets...")
configFile: "systemmonitor-presets.knsrc"
pageStack: applicationWindow().pageStack
pageStack: applicationWindow().pageStack.layers
onChangedEntriesChanged: loader.controller.availablePresetsModel.reload();
},
Kirigami.Action {
......@@ -66,7 +66,7 @@ Kirigami.ScrollablePage {
NewStuff.Action {
text: i18nc("@action", "Get new display styles...")
configFile: "systemmonitor-faces.knsrc"
pageStack: applicationWindow().pageStack
pageStack: applicationWindow().pageStack.layers
onChangedEntriesChanged: loader.controller.availableFacesModel.reload();
}
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment