Fix to unhappy path.
This commit is contained in:
parent
72f53da656
commit
cfe1a4c118
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user