Ejemplo n.º 1
0
def disconnect():
    # Disconnect or display status if already disconnected
    debugTrace("Disconnect selected from connections menu")
    if isVPNConnected():
        disconnectVPN()
        setVPNState("off")
    else:
        displayStatus()
    return
Ejemplo n.º 2
0
def disconnect():
    # Disconnect or display status if already disconnected
    debugTrace("Disconnect selected from connections menu")
    if isVPNConnected():
        disconnectVPN(True)
        setVPNState("off")
    else:
        displayStatus()
    return
Ejemplo n.º 3
0
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