def disconnect(): # Disconnect or display status if already disconnected debugTrace("Disconnect selected from connections menu") if isVPNConnected(): disconnectVPN() setVPNState("off") else: displayStatus() return
def disconnect(): # Disconnect or display status if already disconnected debugTrace("Disconnect selected from connections menu") if isVPNConnected(): disconnectVPN(True) setVPNState("off") else: displayStatus() return
def disconnect(): xbmc.executebuiltin("ActivateWindow(busydialog)") # Disconnect or display status if already disconnected debugTrace("Disconnect selected from connections menu") if isVPNConnected(): disconnectVPN() setVPNState("off") #else: # displayStatus() xbmc.executebuiltin("Dialog.Close(busydialog)") return