diff options
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r-- | screen_ui.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index 849f6d1..46f4add 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -893,6 +893,18 @@ void ScreenRecoveryUI::SetHeadlessMode() pthread_mutex_unlock(&updateMutex); } +void ScreenRecoveryUI::SetSysbarState(int state) +{ + if (HasBackKey()) { + state &= ~SYSBAR_BACK; + } + if (HasHomeKey()) { + state &= ~SYSBAR_HOME; + } + sysbar_state = state; + Redraw(); +} + void ScreenRecoveryUI::StartMenu(const char* const * headers, const char* const * items, int initial_selection) { pthread_mutex_lock(&updateMutex); |