fix: disable widget select mode when going full screen
This commit is contained in:
committed by
Peter Feerick
parent
0b2cb334af
commit
e4fb5e43f4
@@ -58,6 +58,7 @@ class ViewMain: public Window
|
|||||||
void enableTopbar();
|
void enableTopbar();
|
||||||
void disableTopbar();
|
void disableTopbar();
|
||||||
void updateTopbarVisibility();
|
void updateTopbarVisibility();
|
||||||
|
bool enableWidgetSelect(bool enable);
|
||||||
|
|
||||||
// Get the available space in the middle of the screen
|
// Get the available space in the middle of the screen
|
||||||
// (without topbar)
|
// (without topbar)
|
||||||
@@ -95,7 +96,6 @@ class ViewMain: public Window
|
|||||||
void setTopbarVisible(float visible);
|
void setTopbarVisible(float visible);
|
||||||
|
|
||||||
void openMenu();
|
void openMenu();
|
||||||
bool enableWidgetSelect(bool enable);
|
|
||||||
void refreshWidgetSelectTimer();
|
void refreshWidgetSelectTimer();
|
||||||
|
|
||||||
static void long_pressed(lv_event_t* e);
|
static void long_pressed(lv_event_t* e);
|
||||||
|
|||||||
@@ -140,7 +140,10 @@ void Widget::setFullscreen(bool enable)
|
|||||||
lv_obj_set_style_bg_opa(lvobj, LV_OPA_MAX, LV_PART_MAIN);
|
lv_obj_set_style_bg_opa(lvobj, LV_OPA_MAX, LV_PART_MAIN);
|
||||||
setRect(parent->getRect());
|
setRect(parent->getRect());
|
||||||
fullscreen = true;
|
fullscreen = true;
|
||||||
ViewMain::instance()->disableTopbar();
|
|
||||||
|
auto view = ViewMain::instance();
|
||||||
|
view->enableWidgetSelect(false);
|
||||||
|
view->disableTopbar();
|
||||||
bringToTop();
|
bringToTop();
|
||||||
|
|
||||||
if (!lv_obj_get_group(lvobj)) {
|
if (!lv_obj_get_group(lvobj)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user