From bd28ebf5a0df776cb283d56cb7628cd5415b6dac Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Fri, 1 Aug 2025 22:37:20 +1000 Subject: dashboard: fix player selector Fixes #320 --- utils/Icons.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils') 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 { -- cgit v1.2.3-freya