spi refactor

This commit is contained in:
Teo
2026-07-03 17:59:14 +02:00
parent 139ef3b4fd
commit 49e08f0093
3 changed files with 48 additions and 5 deletions
+1 -5
View File
@@ -21,7 +21,7 @@ Item {
const title = Hyprland.activeToplevel?.title;
if (!title)
return qsTr("Desktop");
return title.split(/\s+[\-\u2013\u2014\|]\s+/).pop();
return title.split(/\s+[\-\u2013\u2014\|]\s+/).pop();q
}
readonly property string appIcon: {
@@ -29,10 +29,6 @@ Item {
let icon = AppsState.matchIcon(root.windowClass);
if (!icon) {
icon = AppsState.matchIcon(root.windowClass.toLowerCase());
}
if (!icon) {
icon = AppsState.matchIcon(root.windowTitle);
}