Commit db5cad20 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Fix !277 regression which makes the main drawer always init as collapsed



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@gmail.com>
parent 50407a87
Pipeline #246436 passed with stage
in 2 minutes and 7 seconds
......@@ -67,7 +67,8 @@ Kirigami.OverlayDrawer {
// Modal when mobile, or when the window is narrow and the drawer is expanded/being expanded
modal: Kirigami.Settings.isMobile ||
(applicationWindow().width < narrowWindowWidth && (!collapsed || width > collapsedWidth) && !refuseModal)
collapsed: !Kirigami.Settings.isMobile && (Config.forceCollapsedMainDrawer || narrowWindowWidth)
collapsed: !Kirigami.Settings.isMobile &&
(Config.forceCollapsedMainDrawer || applicationWindow().width < narrowWindowWidth)
onDrawerOpenChanged: {
// We want the drawer to be open but collapsed if we close it when it is modal on desktop
if(!Kirigami.Settings.isMobile && !drawerOpen) {
......
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