mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-08 01:57:44 +03:00
fix startup warnings
This commit is contained in:
parent
a61120bd7d
commit
844dc8096c
@ -187,6 +187,8 @@ Item{
|
||||
return centerStep;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
anchors.horizontalCenterOffset: {
|
||||
//left edge and right edge
|
||||
|
@ -161,7 +161,7 @@ Item{
|
||||
height: Math.round(width) * 1.0002
|
||||
source: decoration
|
||||
smooth: root.zoomFactor === 1 ? true : false
|
||||
providesColors: indicators.info.needsIconColors
|
||||
providesColors: indicators ? indicators.info.needsIconColors : false
|
||||
|
||||
opacity: root.enableShadows ? 0 : 1
|
||||
visible: !taskItem.isSeparator && !badgesLoader.active
|
||||
|
@ -35,7 +35,12 @@ Loader {
|
||||
anchors.verticalCenter: root.vertical ? parent.verticalCenter : undefined
|
||||
|
||||
active: level.bridge && level.bridge.active && (level.isBackground || (level.isForeground && indicators.info.providesFrontLayer))
|
||||
sourceComponent: indicators.indicatorComponent
|
||||
sourceComponent: {
|
||||
if (!indicators) {
|
||||
return;
|
||||
}
|
||||
return indicators.indicatorComponent;
|
||||
}
|
||||
|
||||
width: {
|
||||
if (locked) {
|
||||
@ -64,7 +69,7 @@ Loader {
|
||||
|
||||
Connections {
|
||||
target: taskItem
|
||||
enabled: indicators.info.needsMouseEventCoordinates
|
||||
enabled: indicators ? indicators.info.needsMouseEventCoordinates : false
|
||||
onPressed: {
|
||||
var fixedPos = indicatorLoader.mapFromItem(taskItem, mouse.x, mouse.y);
|
||||
level.mousePressed(Math.round(fixedPos.x), Math.round(fixedPos.y), mouse.button);
|
||||
|
Loading…
x
Reference in New Issue
Block a user