1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Dropbox icon workaround

This commit is contained in:
bbedward
2025-10-08 12:54:06 -04:00
parent 3c420f2e30
commit ed118f4e7a

View File

@@ -66,7 +66,10 @@ Rectangle {
const name = split[0];
const path = split[1];
const fileName = name.substring(name.lastIndexOf("/") + 1);
let fileName = name.substring(name.lastIndexOf("/") + 1);
if (fileName.startsWith("dropboxstatus")) {
fileName = `hicolor/16x16/status/${fileName}`;
}
return `file://${path}/${fileName}`;
}
if (icon.startsWith("/") && !icon.startsWith("file://")) {