summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2017-04-26 12:04:52 +0200
committerKai Uwe Broulik <[email protected]>2017-04-26 12:04:52 +0200
commit18ee82361164b48e809080a49a9a77dcd0480260 (patch)
treec1d7b71e1f2fa5499657eb84387e148f14af9e32
parentfdd3e3fc7ad2b8ed8f79f204fc8f33c2a22ee357 (diff)
[Lock Screen] Show Previous/Next buttons only if supported
If the user can neither go back nor forward, hide those controls for a cleaner look. Differential Revision: https://phabricator.kde.org/D5583
-rw-r--r--lookandfeel/contents/lockscreen/MediaControls.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/lookandfeel/contents/lockscreen/MediaControls.qml b/lookandfeel/contents/lockscreen/MediaControls.qml
index 8027e99..d5bcfe5 100644
--- a/lookandfeel/contents/lockscreen/MediaControls.qml
+++ b/lookandfeel/contents/lockscreen/MediaControls.qml
@@ -136,6 +136,7 @@ Item {
enabled: mpris2Source.canGoBack
iconName: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward"
onClicked: mpris2Source.goPrevious()
+ visible: mpris2Source.canGoBack || mpris2Source.canGoNext
}
PlasmaComponents.ToolButton {
@@ -149,6 +150,7 @@ Item {
enabled: mpris2Source.canGoNext
iconName: LayoutMirroring.enabled ? "media-skip-backward" : "media-skip-forward"
onClicked: mpris2Source.goNext()
+ visible: mpris2Source.canGoBack || mpris2Source.canGoNext
}
}
}