summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-01 22:37:20 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-01 22:37:20 +1000
commitbd28ebf5a0df776cb283d56cb7628cd5415b6dac (patch)
tree77ce44e8f14db39925650ccb7a3ce733011c0537 /utils
parentdcontent: add more spacing to expanded navrail (diff)
downloadcaelestia-shell-bd28ebf5a0df776cb283d56cb7628cd5415b6dac.tar.gz
caelestia-shell-bd28ebf5a0df776cb283d56cb7628cd5415b6dac.tar.bz2
caelestia-shell-bd28ebf5a0df776cb283d56cb7628cd5415b6dac.zip
dashboard: fix player selector
Fixes #320
Diffstat (limited to 'utils')
-rw-r--r--utils/Icons.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/Icons.qml b/utils/Icons.qml
index e8e2bdb..5e95575 100644
--- a/utils/Icons.qml
+++ b/utils/Icons.qml
@@ -147,7 +147,10 @@ Singleton {
property string osName
function getAppIcon(name: string, fallback: string): string {
- return Quickshell.iconPath(DesktopEntries.heuristicLookup(name)?.icon, fallback);
+ const icon = DesktopEntries.heuristicLookup(name)?.icon;
+ if (fallback !== "undefined")
+ return Quickshell.iconPath(icon, fallback);
+ return Quickshell.iconPath(icon);
}
function getAppCategoryIcon(name: string, fallback: string): string {