Clean up some sign out bits
This commit is contained in:
parent
75f58732f6
commit
f258f6c4ac
|
@ -100,6 +100,7 @@ sub ShowLibrarySelect()
|
||||||
sidepanel = scene.findNode("options")
|
sidepanel = scene.findNode("options")
|
||||||
new_options = []
|
new_options = []
|
||||||
options_buttons = [
|
options_buttons = [
|
||||||
|
{"title": "Change server", "id": "change_server"},
|
||||||
{"title": "Sign out", "id": "sign_out"}
|
{"title": "Sign out", "id": "sign_out"}
|
||||||
]
|
]
|
||||||
for each opt in options_buttons
|
for each opt in options_buttons
|
||||||
|
@ -119,6 +120,11 @@ sub ShowLibrarySelect()
|
||||||
return
|
return
|
||||||
else if nodeEventQ(msg, "escape") and msg.getNode() = "search"
|
else if nodeEventQ(msg, "escape") and msg.getNode() = "search"
|
||||||
library.setFocus(true)
|
library.setFocus(true)
|
||||||
|
else if nodeEventQ(msg, "escape") and msg.getNode() = "change_server"
|
||||||
|
unset_setting("server")
|
||||||
|
unset_setting("port")
|
||||||
|
SignOut()
|
||||||
|
return
|
||||||
else if nodeEventQ(msg, "escape") and msg.getNode() = "sign_out"
|
else if nodeEventQ(msg, "escape") and msg.getNode() = "sign_out"
|
||||||
SignOut()
|
SignOut()
|
||||||
return
|
return
|
||||||
|
@ -216,16 +222,6 @@ sub ShowMovieOptions(library)
|
||||||
o.value = get_user_setting(opt.key, opt.default)
|
o.value = get_user_setting(opt.key, opt.default)
|
||||||
new_options.append([o])
|
new_options.append([o])
|
||||||
end for
|
end for
|
||||||
options_buttons = [
|
|
||||||
{"title": "Sign out", "id": "sign_out"}
|
|
||||||
]
|
|
||||||
for each opt in options_buttons
|
|
||||||
o = CreateObject("roSGNode", "OptionsButton")
|
|
||||||
o.title = opt.title
|
|
||||||
o.id = opt.id
|
|
||||||
new_options.append([o])
|
|
||||||
o.observeField("escape", port)
|
|
||||||
end for
|
|
||||||
|
|
||||||
sidepanel.options = new_options
|
sidepanel.options = new_options
|
||||||
sidepanel.observeField("escape", port)
|
sidepanel.observeField("escape", port)
|
||||||
|
@ -238,9 +234,6 @@ sub ShowMovieOptions(library)
|
||||||
options.setFocus(true)
|
options.setFocus(true)
|
||||||
else if nodeEventQ(msg, "escape") and msg.getNode() = "options"
|
else if nodeEventQ(msg, "escape") and msg.getNode() = "options"
|
||||||
options.setFocus(true)
|
options.setFocus(true)
|
||||||
else if nodeEventQ(msg, "escape") and msg.getNode() = "sign_out"
|
|
||||||
SignOut()
|
|
||||||
return
|
|
||||||
else if nodeEventQ(msg, "pageSelected") and pager.pageSelected <> invalid
|
else if nodeEventQ(msg, "pageSelected") and pager.pageSelected <> invalid
|
||||||
pager.pageSelected = invalid
|
pager.pageSelected = invalid
|
||||||
page_num = int(val(msg.getData().id))
|
page_num = int(val(msg.getData().id))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user