spi refactor

This commit is contained in:
Teo committed 2026-07-03 17:59:14 +02:00
1 parent 139ef3b4fd
commit 49e08f0093
3 files changed
+48 -5

No files matched your search

+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);
}