From f3f8405c6d30503cd5f8132c92614b0ac7fa1ad8 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 30 Aug 2025 22:47:16 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/Bar.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'accounts/gkleen@sif/shell/quickshell') diff --git a/accounts/gkleen@sif/shell/quickshell/Bar.qml b/accounts/gkleen@sif/shell/quickshell/Bar.qml index e9760f75..09554a39 100644 --- a/accounts/gkleen@sif/shell/quickshell/Bar.qml +++ b/accounts/gkleen@sif/shell/quickshell/Bar.qml @@ -196,8 +196,11 @@ PanelWindow { if (appAliases[appName]) appName = appAliases[appName]; if (appName && title.endsWith(appName)) { + const oldTitle = title; title = title.substring(0, title.length - appName.length); title = title.replace(/\s*(—|-)\s*$/, ""); + if (!title) + title = oldTitle; } return title; } -- cgit v1.2.3