ViewMain must be created first

This commit is contained in:
Raphael Coeffic
2021-04-08 15:40:23 +02:00
parent efa8f5520b
commit ae7824eff8
+4 -2
View File
@@ -1927,8 +1927,10 @@ void moveTrimsToOffsets() // copy state of 3 primary to subtrim
void opentxInit()
{
TRACE("opentxInit");
#if defined(GUI) && !defined(LIBOPENUI)
#if defined(LIBOPENUI)
// create ViewMain
ViewMain::instance();
#elif defined(GUI)
// TODO add a function for this (duplicated)
menuHandlers[0] = menuMainView;
#if MENUS_LOCK != 2/*no menus*/