fix #497, fix crash on startup

--this was crashing Latte on startup because
the WindowsModel was loaded too early when
the user had set "Show Background only for
maximized windows"
pull/1/head
Michail Vourlakos 8 years ago
parent e982540bff
commit c5dda73d5b

@ -49,7 +49,7 @@ Item{
Component.onCompleted: {
windowsRepeater.model = tasksModel;
winModel.reconsiderMaximized();
// winModel.reconsiderMaximized();
}
}

@ -1150,7 +1150,7 @@ DragDrop.DropArea {
}
Loader{
active: Qt.application.arguments.indexOf("--with-window") >= 0
active: root.debugMode
sourceComponent: DebugWindow{}
}
@ -1168,7 +1168,7 @@ DragDrop.DropArea {
Loader{
id: windowsModel
active: plasmoid.configuration.backgroundOnlyOnMaximized || root.disablePanelShadowMaximized
active: (plasmoid.configuration.backgroundOnlyOnMaximized || root.disablePanelShadowMaximized) && dock
property bool hasMaximizedWindow: active && item ? item.maximizedWindowOnScreen : false
sourceComponent: WindowsModel{}

Loading…
Cancel
Save