chore(color): cleanup UI code (#6989)
This commit is contained in:
+3
-3
@@ -29,11 +29,12 @@
|
||||
#include "lua/lua_states.h"
|
||||
|
||||
#if defined(COLORLCD)
|
||||
#include "LvglWrapper.h"
|
||||
#include "view_main.h"
|
||||
#include "startup_shutdown.h"
|
||||
#include "theme_manager.h"
|
||||
#include "etx_lv_theme.h"
|
||||
#include "menu.h"
|
||||
#include "mainwindow.h"
|
||||
#endif
|
||||
|
||||
#if defined(CLI)
|
||||
@@ -349,7 +350,6 @@ void guiMain(event_t evt)
|
||||
}
|
||||
#endif
|
||||
|
||||
LvglWrapper::instance()->run();
|
||||
MainWindow::instance()->run();
|
||||
|
||||
bool mainViewRequested = (mainRequestFlags & (1u << REQUEST_MAIN_VIEW));
|
||||
@@ -540,7 +540,7 @@ void perMain()
|
||||
|
||||
if (usbPlugged() && getSelectedUsbMode() == USB_MASS_STORAGE_MODE) {
|
||||
#if defined(COLORLCD)
|
||||
LvglWrapper::instance()->run();
|
||||
MainWindow::instance()->run();
|
||||
usbConnectedWindow->checkEvents();
|
||||
#else
|
||||
// disable access to menus
|
||||
|
||||
Reference in New Issue
Block a user