mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
--warnings
Make sure we don't call null pointers Do not reference old objects that don't exist anymore
This commit is contained in:
parent
9bda1b66ff
commit
59297a25f3
1 changed files with 2 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ Rectangle {
|
|||
visible: false //adjust borders is run during setup. We want to avoid painting till completed
|
||||
property Item containment
|
||||
|
||||
color: containment.backgroundHints == PlasmaCore.Types.NoBackground ? "transparent" : theme.textColor
|
||||
color: (containment && containment.backgroundHints == PlasmaCore.Types.NoBackground) ? "transparent" : theme.textColor
|
||||
|
||||
function toggleWidgetExplorer(containment) {
|
||||
console.log("Widget Explorer toggled");
|
||||
|
|
@ -75,7 +75,7 @@ Rectangle {
|
|||
anchors {
|
||||
fill: parent
|
||||
topMargin: containment ? containment.availableScreenRect.y : 0
|
||||
bottomMargin: parent.height - containment ? (containment.availableScreenRect.height + containment.availableScreenRect.y) : 0
|
||||
bottomMargin: parent.height - (containment ? (containment.availableScreenRect.height + containment.availableScreenRect.y) : 0)
|
||||
}
|
||||
z: 222
|
||||
source: Qt.resolvedUrl("Pin.qml")
|
||||
|
|
@ -85,7 +85,6 @@ Rectangle {
|
|||
containment.parent = root;
|
||||
containment.visible = true;
|
||||
containment.anchors.fill = root;
|
||||
panel.backgroundHints = containment.backgroundHints;
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue