diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-07 11:58:12 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-07 11:58:12 +0100 |
| commit | 4a5f1197ec26518f22925dd0b56bc8a1b0dc6729 (patch) | |
| tree | 4a249cff81209e548da310966db44d8c4564274d /desktop/island | |
| parent | a8a8e97a2b8187a49993c774471155346508de47 (diff) | |
| download | quickshell-4a5f1197ec26518f22925dd0b56bc8a1b0dc6729.tar.gz quickshell-4a5f1197ec26518f22925dd0b56bc8a1b0dc6729.zip | |
island: retry the Sonix cover per track
Diffstat (limited to 'desktop/island')
| -rw-r--r-- | desktop/island/SonixPanel.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/island/SonixPanel.qml b/desktop/island/SonixPanel.qml index 6fff9ce..c884c93 100644 --- a/desktop/island/SonixPanel.qml +++ b/desktop/island/SonixPanel.qml @@ -67,7 +67,8 @@ Column { property int artTry: 0 readonly property string artUrl: p.path ? `${Sonix.base}/api/art?${S.query({ path: p.path, max: 256 })}&t=${artTry}` : "" - onArtUrlChanged: if (artTry === 0) artRetry.stop() + readonly property string artPath: p.path || "" + onArtPathChanged: { artTry = 0; artRetry.stop(); } Timer { id: artRetry; interval: 1000; onTriggered: panel.artTry++ } spacing: 14 |
