activewindow: fix compact title binding loop (#1302)

This commit is contained in:
Ezekiel Gonzales 2026-03-19 17:47:52 +08:00 committed by GitHub
parent 6b61164808
commit 0548365a8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ Item {
return qsTr("Desktop");
if (Config.bar.activeWindow.compact) {
// " - " (standard hyphen), " " (em dash), " " (en dash)
const parts = root.windowTitle.split(/\s+[\-\u2013\u2014]\s+/);
const parts = title.split(/\s+[\-\u2013\u2014]\s+/);
if (parts.length > 1)
return parts[parts.length - 1].trim();
}