mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Fix warnings
This commit is contained in:
parent
5d486eca53
commit
6adbe5249d
4 changed files with 7 additions and 7 deletions
|
|
@ -40,7 +40,7 @@ PlasmaCore.IconItem {
|
|||
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
|
||||
visible: paSinkModel.preferredSink.muted
|
||||
visible: paSinkModel.preferredSink && paSinkModel.preferredSink.muted
|
||||
|
||||
function iconName(volume, muted, prefix) {
|
||||
if (!prefix) {
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ PlasmaCore.ColorScope {
|
|||
anchors.left: parent.left
|
||||
height: parent.height
|
||||
width: parent.width/3
|
||||
enabled: taskSwitcher.tasksCount > 0;
|
||||
enabled: taskSwitcher && taskSwitcher.tasksCount > 0;
|
||||
iconSource: "box"
|
||||
onClicked: {
|
||||
plasmoid.nativeInterface.showDesktop = false;
|
||||
|
|
@ -167,7 +167,7 @@ PlasmaCore.ColorScope {
|
|||
width: parent.width/3
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
iconSource: "start-here-kde"
|
||||
enabled: taskSwitcher.tasksCount > 0
|
||||
enabled: taskSwitcher && taskSwitcher.tasksCount > 0
|
||||
checkable: true
|
||||
onCheckedChanged: {
|
||||
taskSwitcher.hide();
|
||||
|
|
|
|||
|
|
@ -165,7 +165,7 @@ Item {
|
|||
PlasmaComponents.Label {
|
||||
id: activityNameLabel
|
||||
anchors.centerIn: parent
|
||||
text: activitiesView.nextContainment.activityName
|
||||
text: activitiesView.nextContainment ? activitiesView.nextContainment.activityName : ""
|
||||
}
|
||||
Behavior on opacity {
|
||||
OpacityAnimator {
|
||||
|
|
@ -226,8 +226,8 @@ Item {
|
|||
id: pinOverlay
|
||||
anchors {
|
||||
fill: parent
|
||||
topMargin: containment.availableScreenRect.y
|
||||
bottomMargin: parent.height - containment.availableScreenRect.height - containment.availableScreenRect.y
|
||||
topMargin: containment ? containment.availableScreenRect.y : 0
|
||||
bottomMargin: parent.height - containment ? (containment.availableScreenRect.height + containment.availableScreenRect.y) : 0
|
||||
}
|
||||
z: 222
|
||||
source: Qt.resolvedUrl("Pin.qml")
|
||||
|
|
|
|||
|
|
@ -27,7 +27,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
|
||||
|
||||
onContainmentChanged: {
|
||||
containment.parent = root;
|
||||
|
|
|
|||
Loading…
Reference in a new issue