Commit cb42b3fd authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

fix empty drawer appearing in some pages

parent 5ca2402a
...@@ -118,9 +118,9 @@ Kirigami.ApplicationWindow ...@@ -118,9 +118,9 @@ Kirigami.ApplicationWindow
onModalChanged: drawerOpen = !modal onModalChanged: drawerOpen = !modal
drawerOpen: true drawerOpen: true
onContentItemChanged: if (contentItem) { onContentItemChanged: if (contentItem) {
contentItem.visible = true; contentItem.visible = (mainPagePool.lastLoadedItem.drawerContent !== undefined);
} }
width: contentItem ? columnWidth : 0 width: mainPagePool.lastLoadedItem.drawerContent ? columnWidth : 0
contentItem: mainPagePool.lastLoadedItem.drawerContent ?? null contentItem: mainPagePool.lastLoadedItem.drawerContent ?? null
handleVisible: mainPagePool.lastLoadedItem.drawerContent !== undefined handleVisible: mainPagePool.lastLoadedItem.drawerContent !== undefined
......
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