diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-08-30 22:47:16 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-08-30 22:47:16 +0200 |
commit | f3f8405c6d30503cd5f8132c92614b0ac7fa1ad8 (patch) | |
tree | 2c2244c835a1016dbe9be9b219afe97cc7119b7a /accounts/gkleen@sif | |
parent | ca1502142e442673bc19ee70ad30635a9f3c46a5 (diff) | |
download | nixos-f3f8405c6d30503cd5f8132c92614b0ac7fa1ad8.tar nixos-f3f8405c6d30503cd5f8132c92614b0ac7fa1ad8.tar.gz nixos-f3f8405c6d30503cd5f8132c92614b0ac7fa1ad8.tar.bz2 nixos-f3f8405c6d30503cd5f8132c92614b0ac7fa1ad8.tar.xz nixos-f3f8405c6d30503cd5f8132c92614b0ac7fa1ad8.zip |
...
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Bar.qml | 3 |
1 files changed, 3 insertions, 0 deletions
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 { | |||
196 | if (appAliases[appName]) | 196 | if (appAliases[appName]) |
197 | appName = appAliases[appName]; | 197 | appName = appAliases[appName]; |
198 | if (appName && title.endsWith(appName)) { | 198 | if (appName && title.endsWith(appName)) { |
199 | const oldTitle = title; | ||
199 | title = title.substring(0, title.length - appName.length); | 200 | title = title.substring(0, title.length - appName.length); |
200 | title = title.replace(/\s*(—|-)\s*$/, ""); | 201 | title = title.replace(/\s*(—|-)\s*$/, ""); |
202 | if (!title) | ||
203 | title = oldTitle; | ||
201 | } | 204 | } |
202 | return title; | 205 | return title; |
203 | } | 206 | } |