Disable options button and overhang text

This commit is contained in:
Charles Ewert 2020-05-04 13:57:40 -04:00
parent 494773eb16
commit c391766fb9
5 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,6 @@
sub init()
m.top.setFocus(true)
m.top.optionsAvailable = false
end sub
function onKeyEvent(key as String, press as Boolean) as Boolean

View File

@ -1,5 +1,6 @@
sub init()
m.top.overhangTitle = "Home"
m.top.optionsAvailable = true
end sub
function refresh()

View File

@ -1,4 +1,5 @@
sub init()
m.top.optionsAvailable = false
end sub
sub itemContentChanged()

View File

@ -29,6 +29,7 @@ sub Main()
' load home page
m.overhang.title = "Home"
m.overhang.currentUser = m.user.Name
m.overhang.showOptions = true
group = CreateHomeGroup()
m.scene.appendChild(group)

View File

@ -28,6 +28,8 @@ function SignOut()
end if
unset_setting("active_user")
m.overhang.currentUser = ""
m.overhang.showOptions = false
m.scene.unobserveField("optionsPressed")
end function
function AvailableUsers()