From 9fd914875c0cafc0172e035d08de6aea3804f656 Mon Sep 17 00:00:00 2001 From: notiant <238434866+notiant@users.noreply.github.com> Date: Sat, 29 Nov 2025 01:02:39 +0100 Subject: [PATCH] Prevent expanding empty bar pills --- Assets/Translations/de.json | 2 +- Modules/Bar/Widgets/Bluetooth.qml | 2 +- Modules/Bar/Widgets/WiFi.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Translations/de.json b/Assets/Translations/de.json index 2512e951..a3ec3e59 100644 --- a/Assets/Translations/de.json +++ b/Assets/Translations/de.json @@ -381,7 +381,7 @@ "plugged-in": "Angeschlossen.", "power-profile": "Energieprofil", "time-left": "Verbleibende Zeit: {time}.", - "time-until-full": "Zeit bis vollständig geladen: {time}." + "time-until-full": "Verbleibende Ladezeit: {time}." }, "bluetooth": { "panel": { diff --git a/Modules/Bar/Widgets/Bluetooth.qml b/Modules/Bar/Widgets/Bluetooth.qml index e57f01b7..958d5b31 100644 --- a/Modules/Bar/Widgets/Bluetooth.qml +++ b/Modules/Bar/Widgets/Bluetooth.qml @@ -87,7 +87,7 @@ Item { } autoHide: false forceOpen: !isBarVertical && root.displayMode === "alwaysShow" - forceClose: isBarVertical || root.displayMode === "alwaysHide" + forceClose: isBarVertical || root.displayMode === "alwaysHide" || text == "" onClicked: PanelService.getPanel("bluetoothPanel", screen)?.toggle(this) onRightClicked: { var popupMenuWindow = PanelService.getPopupMenuWindow(screen); diff --git a/Modules/Bar/Widgets/WiFi.qml b/Modules/Bar/Widgets/WiFi.qml index f2832a1d..37ace39c 100644 --- a/Modules/Bar/Widgets/WiFi.qml +++ b/Modules/Bar/Widgets/WiFi.qml @@ -109,7 +109,7 @@ Item { } autoHide: false forceOpen: !isBarVertical && root.displayMode === "alwaysShow" - forceClose: isBarVertical || root.displayMode === "alwaysHide" + forceClose: isBarVertical || root.displayMode === "alwaysHide" || text == "" onClicked: PanelService.getPanel("wifiPanel", screen)?.toggle(this) onRightClicked: { var popupMenuWindow = PanelService.getPopupMenuWindow(screen);