From 00940b220e07f5f5f47525d63a954edb552bd282 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Sat, 30 Sep 2023 14:40:49 +0800 Subject: [PATCH] Refine connection behavior Signed-off-by: Loren Eteval --- Furious/Action/Connect.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Furious/Action/Connect.py b/Furious/Action/Connect.py index a530532..5bb0a6d 100644 --- a/Furious/Action/Connect.py +++ b/Furious/Action/Connect.py @@ -343,12 +343,11 @@ class ConnectAction(Action): APP().tray.RoutingAction.setDisabled(value) - if (PLATFORM == 'Windows' or PLATFORM == 'Darwin') and isAdministrator(): + if isAdministrator(): VPNModeAction = APP().tray.SettingsAction.getVPNModeAction() - assert VPNModeAction is not None - - VPNModeAction.setDisabled(value) + if VPNModeAction is not None: + VPNModeAction.setDisabled(value) def setConnectingStatus(self, showProgressBar=True): if showProgressBar: