From 2fd1e90d57378e7335bf72496d4787cddbed890f Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 29 Apr 2025 23:45:12 +1000 Subject: bar: fix activewindow --- utils/Icons.qml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'utils') 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 { -- cgit v1.2.3-freya