Fix media controls on lockscreen not working

This commit is contained in:
Devin Lin 2020-12-23 22:01:05 -05:00
parent 3e1471255a
commit 834a4a7108
2 changed files with 2 additions and 3 deletions

View file

@ -95,6 +95,7 @@ PlasmaCore.ColorScope {
ColumnLayout {
id: phoneClockComponent
visible: !isWidescreen
z: passwordFlickable.contentY === 0 ? 5 : 0 // in front of password flickable when closed
anchors {
top: parent.top
@ -129,7 +130,6 @@ PlasmaCore.ColorScope {
Layout.minimumWidth: units.gridUnit * 15
Layout.leftMargin: units.gridUnit
Layout.rightMargin: units.gridUnit
z: 5
}
}
@ -144,6 +144,7 @@ PlasmaCore.ColorScope {
left: parent.left
leftMargin: units.gridUnit * 3
}
z: passwordFlickable.contentY === 0 ? 5 : 0 // in front of password flickable when closed
ColumnLayout {
id: tabletLayout
@ -162,7 +163,6 @@ PlasmaCore.ColorScope {
Layout.fillWidth: true
Layout.maximumWidth: units.gridUnit * 25
Layout.minimumWidth: units.gridUnit * 20
z: 5
}
}
}

View file

@ -151,7 +151,6 @@ Item {
Layout.preferredWidth: height // make this button bigger
icon.name: mpris2Source.playing ? "media-playback-pause" : "media-playback-start"
onClicked: {
console.log("Fooo");
// fadeoutTimer.running = false
mpris2Source.playPause()
}