address comment

This commit is contained in:
sevenrats 2023-09-10 22:09:16 -04:00
parent ec7ad49792
commit 30bd09e558

View File

@ -253,12 +253,14 @@ function CreateServerGroup()
dialog.title = tr("Connecting to Server")
m.scene.dialog = dialog
serverUrl = inferServerUrl(screen.serverUrl)
'If this is a different server from what we know, reset username/password setting
if m.global.session.server.url <> serverUrl
set_setting("username", "")
set_setting("password", "")
if serverUrl <> ""
'If this is a different server from what we know, reset username/password setting
if m.global.session.server.url <> serverUrl
set_setting("username", "")
set_setting("password", "")
end if
set_setting("server", serverUrl)
end if
set_setting("server", serverUrl)
isConnected = session.server.UpdateURL(serverUrl)
serverInfoResult = invalid