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:
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…
x
Reference in New Issue
Block a user