Fix to unhappy path.

This commit is contained in:
Jimi 2022-05-29 23:00:43 -06:00 committed by Cody Robibero
parent 72f53da656
commit cfe1a4c118

View File

@ -232,16 +232,16 @@ function CreateSigninGroup(user = "")
json = initQuickConnect() json = initQuickConnect()
if json = invalid if json = invalid
group.findNode("alert").text = tr("Quick Connect not available.") 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 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" else if msg.getField() = "authenticated"
' Quick connect authentication was successful... ' Quick connect authentication was successful...
return "true" return "true"