Commit f06cf1e0 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Clear layers when navigating

If there's a page open in a layer, navigating to a different system
monitor page has no effect since the layer hides the page change. So if
we have pages in a layer and the user clicks on a page to navigate to
it, clear the layers to close those pages and show the navigation
change.


(cherry picked from commit 53bf2662)
parent d96d748f
......@@ -149,6 +149,10 @@ Kirigami.ApplicationWindow {
visible: !model.hidden
onTriggered: {
config.lastVisitedPage = model.fileName
if (app.pageStack.layers.depth > 0) {
app.pageStack.layers.clear()
}
}
Component.onCompleted: {
......
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