Skip to content

feat(vpn): add provider selector to VPN quick-toggle#1713

Open
nouredeen06 wants to merge 2 commits into
caelestia-dots:mainfrom
nouredeen06:feat/vpn-provider-selector
Open

feat(vpn): add provider selector to VPN quick-toggle#1713
nouredeen06 wants to merge 2 commits into
caelestia-dots:mainfrom
nouredeen06:feat/vpn-provider-selector

Conversation

@nouredeen06

Copy link
Copy Markdown

Right-click the VPN quick-toggle to open a menu listing every configured provider and switch the active one. Left-click keeps the existing connect/disconnect behaviour.

Adds VPN.selectProvider(index), which disconnects the current provider (if connected) and reassigns the provider array so only the chosen index is enabled.

@nouredeen06
nouredeen06 force-pushed the feat/vpn-provider-selector branch 2 times, most recently from 73c371a to b48d4e7 Compare July 16, 2026 10:47
@nouredeen06
nouredeen06 marked this pull request as ready for review July 16, 2026 10:50

@dxnnv dxnnv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionality of this menu has been made incompatible as of #1605. Changes have been proposed to align with the reworked VPN service.

Comment thread services/VPN.qml Outdated
Comment thread modules/utilities/cards/Toggles.qml Outdated
Comment thread modules/utilities/cards/Toggles.qml Outdated
Comment thread modules/utilities/cards/Toggles.qml Outdated
Comment thread modules/utilities/cards/Toggles.qml Outdated
Comment thread modules/utilities/cards/Toggles.qml Outdated
Comment thread modules/utilities/cards/Toggles.qml
Comment thread modules/utilities/cards/Toggles.qml Outdated
Comment thread modules/utilities/cards/Toggles.qml Outdated
@nouredeen06
nouredeen06 requested a review from a team July 18, 2026 15:46

@nouredeen06 nouredeen06 left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied suggestions by @dxnnv

Right-click the VPN quick-toggle to open a menu listing every configured
provider and switch the active one. Left-click keeps the existing
connect/disconnect behaviour.

Uses VPN.providers as the model, VPN.selectedProvider for highlight
tracking, and VPN.setActiveProvider() to switch providers.
@nouredeen06
nouredeen06 force-pushed the feat/vpn-provider-selector branch from 473695e to 3055450 Compare July 18, 2026 16:09

@dxnnv dxnnv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this locally, seems to work fine. VPN switching functions as expected and didn't encounter any errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants