From 1e7a0beaed864aff93ab1cf8378247f7d587d850 Mon Sep 17 00:00:00 2001 From: Jon Rogers <67245+devnullvoid@users.noreply.github.com> Date: Sat, 30 Aug 2025 16:32:09 -0400 Subject: [PATCH] VPN Popout: show only one header action (Quick Connect when none active, Disconnect All when any active) --- Modules/TopBar/VpnPopout.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/TopBar/VpnPopout.qml b/Modules/TopBar/VpnPopout.qml index 514359a6..abc39a01 100644 --- a/Modules/TopBar/VpnPopout.qml +++ b/Modules/TopBar/VpnPopout.qml @@ -162,12 +162,12 @@ DankPopout { Item { Layout.fillWidth: true; height: 1 } - // Quick connect + // Quick connect (shown only when none active) Rectangle { height: 28 radius: 14 color: quickBtnArea.containsMouse ? Theme.primaryHoverLight : Theme.surfaceLight - visible: VpnService.profiles.length > 0 + visible: !VpnService.connected && VpnService.profiles.length > 0 width: 120 Layout.alignment: Qt.AlignVCenter | Qt.AlignRight border.width: 1 @@ -189,7 +189,7 @@ DankPopout { } } - // Disconnect all (visible when any active) + // Disconnect all (shown only when any active) Rectangle { height: 28 radius: 14 @@ -204,7 +204,7 @@ DankPopout { anchors.centerIn: parent spacing: Theme.spacingXS DankIcon { name: "link_off"; size: Theme.fontSizeSmall; color: Theme.surfaceText } - StyledText { text: "Disconnect All"; font.pixelSize: Theme.fontSizeSmall; color: Theme.surfaceText; font.weight: Font.Medium } + StyledText { text: "Disconnect"; font.pixelSize: Theme.fontSizeSmall; color: Theme.surfaceText; font.weight: Font.Medium } } MouseArea {