diff --git a/source/ShowScenes.brs b/source/ShowScenes.brs index b09197d1..164ce1b3 100644 --- a/source/ShowScenes.brs +++ b/source/ShowScenes.brs @@ -232,16 +232,16 @@ function CreateSigninGroup(user = "") json = initQuickConnect() if json = invalid group.findNode("alert").text = tr("Quick Connect not available.") - return "false" + else + ' Server user is talking to is at least 10.8 and has quick connect enabled... + m.quickConnectDialog = createObject("roSGNode", "QuickConnectDialog") + m.quickConnectDialog.quickConnectJson = json + m.quickConnectDialog.title = tr("Quick Connect") + m.quickConnectDialog.message = [tr("Here is your Quick Connect code: ") + json.Code, tr("(Dialog will close automatically)")] + m.quickConnectDialog.buttons = [tr("Cancel")] + m.quickConnectDialog.observeField("authenticated", port) + m.scene.dialog = m.quickConnectDialog end if - ' Server user is talking to is at least 10.8 and has quick connect enabled... - m.quickConnectDialog = createObject("roSGNode", "QuickConnectDialog") - m.quickConnectDialog.quickConnectJson = json - m.quickConnectDialog.title = tr("Quick Connect") - m.quickConnectDialog.message = [tr("Here is your Quick Connect code: ") + json.Code, tr("(Dialog will close automatically)")] - m.quickConnectDialog.buttons = [tr("Cancel")] - m.quickConnectDialog.observeField("authenticated", port) - m.scene.dialog = m.quickConnectDialog else if msg.getField() = "authenticated" ' Quick connect authentication was successful... return "true"