From 25c4d4e11198bd8e0d9e717cfbdd2b8105cfeb4d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 14 Jul 2025 14:01:08 +0800 Subject: mpris: avoid warning/type err undefined --- bar/Mpris.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3