mirror of https://github.com/KDE/kasts.git
Don't attempt to change globaldrawer properties if it's not loaded yet
This commit is contained in:
parent
91aa415908
commit
3aa45e555a
|
@ -40,12 +40,14 @@ Kirigami.ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeNavigation(isNarrow) {
|
function changeNavigation(isNarrow) {
|
||||||
if (isNarrow) {
|
if (globalDrawer) {
|
||||||
globalDrawer.collapsed = true
|
if (isNarrow) {
|
||||||
globalDrawer.width = Layout.implicitWidth
|
globalDrawer.collapsed = true
|
||||||
} else {
|
globalDrawer.width = Layout.implicitWidth
|
||||||
globalDrawer.collapsed = false
|
} else {
|
||||||
globalDrawer.width = originalWidth
|
globalDrawer.collapsed = false
|
||||||
|
globalDrawer.width = originalWidth
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue