You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.sudo_dialog.text_label.setText("<html><head/><body><p>VPN Network Manager requires <span style=\" font-weight:600;\">sudo</span> permissions in order to remove the auto-connect script from the Network Manager directory. Please input the <span style=\" font-weight:600;\">sudo</span> Password or run the program with elevated priveledges.</p></body></html>")
self.sudo_dialog.text_label.setText("<html><head/><body><p>VPN Network Manager requires <span style=\" font-weight:600;\">sudo</span> permissions in order to remove the kill switch script from the Network Manager directory. Please input the <span style=\" font-weight:600;\">sudo</span> Password or run the program with elevated priveledges.</p></body></html>")
self.sudo_dialog.text_label.setText("<html><head/><body><p>VPN Network Manager requires <span style=\" font-weight:600;\">sudo</span> permissions in order to move the kill switch script to the Network Manager directory. Please input the <span style=\" font-weight:600;\">sudo</span> Password or run the program with elevated priveledges.</p></body></html>")
859
+
self.sudo_dialog.exec_()
860
+
ifself.sudo_password:
861
+
self.set_kill_switch()
862
+
else:
863
+
self.killswitch_btn.setChecked(False)
864
+
returnFalse
865
+
838
866
defcheck_connection_validity(self):
839
867
ifself.server_type_select.currentText() =='Double VPN': # perhaps add pop up to give user the choice
840
868
self.connection_type_select.setCurrentIndex(1) # set to TCP
@@ -876,8 +904,12 @@ def connect(self):
876
904
ifself.auto_connect_box.isChecked() andnotself.sudo_password: # prompt for sudo password
877
905
self.sudo_dialog=self.get_sudo()
878
906
self.sudo_dialog.exec_()
879
-
self.set_auto_connect()
880
907
908
+
ifself.sudo_password: #valid password exists
909
+
self.set_auto_connect()
910
+
else:
911
+
self.auto_connect_box.setChecked(False)
912
+
returnFalse
881
913
elifself.auto_connect_box.isChecked() andself.sudo_password: # sudo password exists in memory
882
914
self.set_auto_connect()
883
915
@@ -893,13 +925,13 @@ def connect(self):
893
925
self.sudo_dialog=self.get_sudo()
894
926
self.sudo_dialog.text_label.setText("<html><head/><body><p>VPN Network Manager requires <span style=\" font-weight:600;\">sudo</span> permissions in order to move the kill switch script to the Network Manager directory. Please input the <span style=\" font-weight:600;\">sudo</span> Password or run the program with elevated priveledges.</p></body></html>")
0 commit comments