-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvement: Allow disconnect from 'Connecting', with limits. (#147)
This PR: - Disables the toggle when the extension is connecting. **Why:** - Button mashing on the toggle when the extension is 'connecting' (meaning the VPN client is transitioning from StateOn to StateOnPartial) results in wonky/unexpected behavior. - The toggle already appears disabled when connecting. You wouldn't expect clicking on it to do anything. - Adds a 15 second timeout, after which the extension toggle is re-enabled (actually and visibly) **Why:** - If the toggle remains disabled, and the client never successfully transitions to 'StateOnPartial', the extension is stuck in the connecting state.
- Loading branch information
1 parent
1ffa427
commit cd17527
Showing
4 changed files
with
49 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters