1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-04 04:42:05 -04:00

dock: fix auto-hide hit area

media osd: fix showing without album art
This commit is contained in:
bbedward
2026-02-11 17:50:57 -05:00
parent 46bb3b613b
commit 0133c19276
4 changed files with 35 additions and 18 deletions

View File

@@ -24,8 +24,6 @@ Singleton {
if (url === _lastArtUrl)
return;
_lastArtUrl = url;
_bgArtSource = "";
loading = true;
if (!url.startsWith("http://") && !url.startsWith("https://")) {
@@ -34,8 +32,7 @@ Singleton {
Proc.runCommand("trackart", ["test", "-f", filePath], (output, exitCode) => {
if (_lastArtUrl !== localUrl)
return;
if (exitCode === 0)
_bgArtSource = localUrl;
_bgArtSource = exitCode === 0 ? localUrl : "";
loading = false;
}, 200);
return;
@@ -50,8 +47,7 @@ Singleton {
const resultPath = output.trim();
if (resultPath !== filename)
return;
if (exitCode === 0)
_bgArtSource = "file://" + resultPath;
_bgArtSource = exitCode === 0 ? "file://" + resultPath : "";
loading = false;
}, 200);
}