diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-14 14:01:08 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-14 14:01:08 +0800 |
| commit | 25c4d4e11198bd8e0d9e717cfbdd2b8105cfeb4d (patch) | |
| tree | 94167a5fb957cc8cdd3b285b90c7b7058b76df3a | |
| parent | 2a7858d900f7105e9833e78b1482639218e384c2 (diff) | |
mpris: avoid warning/type err undefined
| -rw-r--r-- | bar/Mpris.qml | 2 |
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 { |
