summaryrefslogtreecommitdiff
path: root/bar
diff options
context:
space:
mode:
Diffstat (limited to 'bar')
-rw-r--r--bar/Mpris.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml
index 2530511..dbe636b 100644
--- a/bar/Mpris.qml
+++ b/bar/Mpris.qml
@@ -15,7 +15,7 @@ Item {
// length broken (https://github.com/quickshell-mirror/quickshell/issues/109)
readonly property string position: friendlyTimeForSeconds(activePlayer?.position) || "0:00"
readonly property string length: friendlyTimeForSeconds(activePlayer?.length) || "0:00"
- readonly property string progress: activePlayer.positionSupported && position != length ? position + "/" + length : activePlayer.positionSupported && !activePlayer.lengthSupported ? !activePlayer.positionSupported && activePlayer.lengthSupported ? "" : position : activePlayer.lengthSupported ? length : ""
+ readonly property string progress: activePlayer?.positionSupported && position != length ? position + "/" + length : activePlayer.positionSupported && !activePlayer.lengthSupported ? !activePlayer.positionSupported && activePlayer.lengthSupported ? "" : position : activePlayer.lengthSupported ? length : ""
readonly property string state: activePlayer?.isPlaying ? Icons.media.pause : Icons.media.play
function cleanMusicTitle(title: string): string {