diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 23:45:12 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-29 23:45:12 +1000 |
| commit | 2fd1e90d57378e7335bf72496d4787cddbed890f (patch) | |
| tree | 811ce727710bf0404f6c1009d7daab8331cd9fd3 /utils | |
| parent | bar: animate tray recolour (diff) | |
| download | caelestia-shell-2fd1e90d57378e7335bf72496d4787cddbed890f.tar.gz caelestia-shell-2fd1e90d57378e7335bf72496d4787cddbed890f.tar.bz2 caelestia-shell-2fd1e90d57378e7335bf72496d4787cddbed890f.zip | |
bar: fix activewindow
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/Icons.qml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/utils/Icons.qml b/utils/Icons.qml index 92d8de8..312ae6d 100644 --- a/utils/Icons.qml +++ b/utils/Icons.qml @@ -152,17 +152,14 @@ Singleton { property string osIcon: "" - function getAppCategoryIcon(name: string): string { - if (!name) - return null; - + function getAppCategoryIcon(name: string, fallback: string): string { const categories = DesktopEntries.applications.values.find(app => app.id === name)?.categories; if (categories) for (const [key, value] of Object.entries(this.categoryIcons)) if (categories.includes(key)) return value; - return "terminal"; + return fallback; } function getNetworkIcon(strength: int): string { |