Commit a5d88b1e authored by Nate Graham's avatar Nate Graham Committed by Aleix Pol Gonzalez
Browse files

When drawer is a drawer, close it when clicking leaf items in it

Otherwise it awkwardly stays open, covering the content you just
navigated to. It's nicer to close it automatically after using it to go
somewhere, so you can see the place you just got to.

BUG: 457539
FIXED-IN: 5.25.5
parent 84624c86
Pipeline #222460 passed with stage
in 1 minute and 22 seconds
......@@ -173,6 +173,10 @@ Kirigami.GlobalDrawer {
pageStack.currentIndex = 0
window.leftPage.category = category
}
if (!drawer.wideScreen && category.subcategories.length === 0) {
drawer.close();
}
}
}
}
......
Supports Markdown
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