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
onModalChanged: drawerOpen = !modal
drawerOpen: true
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
handleVisible: mainPagePool.lastLoadedItem.drawerContent !== undefined
......
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