fix: disable widget select mode when going full screen

This commit is contained in:
Raphael Coeffic
2022-09-25 19:23:17 +10:00
committed by Peter Feerick
parent 0b2cb334af
commit e4fb5e43f4
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -58,6 +58,7 @@ class ViewMain: public Window
void enableTopbar();
void disableTopbar();
void updateTopbarVisibility();
bool enableWidgetSelect(bool enable);
// Get the available space in the middle of the screen
// (without topbar)
@@ -95,7 +96,6 @@ class ViewMain: public Window
void setTopbarVisible(float visible);
void openMenu();
bool enableWidgetSelect(bool enable);
void refreshWidgetSelectTimer();
static void long_pressed(lv_event_t* e);
+4 -1
View File
@@ -140,7 +140,10 @@ void Widget::setFullscreen(bool enable)
lv_obj_set_style_bg_opa(lvobj, LV_OPA_MAX, LV_PART_MAIN);
setRect(parent->getRect());
fullscreen = true;
ViewMain::instance()->disableTopbar();
auto view = ViewMain::instance();
view->enableWidgetSelect(false);
view->disableTopbar();
bringToTop();
if (!lv_obj_get_group(lvobj)) {