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,6 +40,7 @@ Kirigami.ApplicationWindow {
|
|||
}
|
||||
|
||||
function changeNavigation(isNarrow) {
|
||||
if (globalDrawer) {
|
||||
if (isNarrow) {
|
||||
globalDrawer.collapsed = true
|
||||
globalDrawer.width = Layout.implicitWidth
|
||||
|
@ -48,6 +49,7 @@ Kirigami.ApplicationWindow {
|
|||
globalDrawer.width = originalWidth
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getPage(page) {
|
||||
switch (page) {
|
||||
|
|
Loading…
Reference in New Issue