1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-20 06:50:28 +03:00

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"
This commit is contained in:
Michail Vourlakos 2017-05-28 19:05:12 +03:00
parent e982540bff
commit c5dda73d5b
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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{}