@@ -22,11 +22,7 @@
|
|||||||
#include "menu_model.h"
|
#include "menu_model.h"
|
||||||
#include "menu_radio.h"
|
#include "menu_radio.h"
|
||||||
#include "menu_screen.h"
|
#include "menu_screen.h"
|
||||||
//#include "model_select.h"
|
|
||||||
//#include "view_channels.h"
|
|
||||||
//#include "view_statistics.h"
|
|
||||||
#include "topbar_impl.h"
|
#include "topbar_impl.h"
|
||||||
//#include "menu.h"
|
|
||||||
#include "view_main_menu.h"
|
#include "view_main_menu.h"
|
||||||
|
|
||||||
#include "opentx.h"
|
#include "opentx.h"
|
||||||
@@ -48,6 +44,7 @@ ViewMain::ViewMain():
|
|||||||
|
|
||||||
ViewMain::~ViewMain()
|
ViewMain::~ViewMain()
|
||||||
{
|
{
|
||||||
|
_instance = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ViewMain::setTopbarVisible(float visible)
|
void ViewMain::setTopbarVisible(float visible)
|
||||||
|
|||||||
+13
-5
@@ -1521,6 +1521,13 @@ void opentxClose(uint8_t shutdown)
|
|||||||
|
|
||||||
RTOS_WAIT_MS(100);
|
RTOS_WAIT_MS(100);
|
||||||
|
|
||||||
|
#if defined(COLORLCD)
|
||||||
|
MainWindow::instance()->deleteChildren();
|
||||||
|
|
||||||
|
//TODO: In fact we want only to empty the trash (private method)
|
||||||
|
MainWindow::instance()->run();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(SDCARD)
|
#if defined(SDCARD)
|
||||||
sdDone();
|
sdDone();
|
||||||
#endif
|
#endif
|
||||||
@@ -1531,16 +1538,17 @@ void opentxResume()
|
|||||||
{
|
{
|
||||||
TRACE("opentxResume");
|
TRACE("opentxResume");
|
||||||
|
|
||||||
#if !defined(LIBOPENUI)
|
|
||||||
menuHandlers[0] = menuMainView;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
sdMount();
|
sdMount();
|
||||||
storageReadAll();
|
storageReadAll();
|
||||||
|
|
||||||
#if defined(COLORLCD)
|
#if defined(COLORLCD)
|
||||||
#warning "TODO call loadTheme (not sure, it has been removed in some earlier commit)"
|
//TODO: needs to go into storageReadAll()
|
||||||
|
TRACE("reloading theme");
|
||||||
loadTheme();
|
loadTheme();
|
||||||
|
|
||||||
|
// Force redraw
|
||||||
|
ViewMain::instance()->invalidate();
|
||||||
|
TRACE("theme reloaded & ViewMain invalidated");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// removed to avoid the double warnings (throttle, switch, etc.)
|
// removed to avoid the double warnings (throttle, switch, etc.)
|
||||||
|
|||||||
Reference in New Issue
Block a user