ViewMain must be created first
This commit is contained in:
@@ -1927,8 +1927,10 @@ void moveTrimsToOffsets() // copy state of 3 primary to subtrim
|
|||||||
void opentxInit()
|
void opentxInit()
|
||||||
{
|
{
|
||||||
TRACE("opentxInit");
|
TRACE("opentxInit");
|
||||||
|
#if defined(LIBOPENUI)
|
||||||
#if defined(GUI) && !defined(LIBOPENUI)
|
// create ViewMain
|
||||||
|
ViewMain::instance();
|
||||||
|
#elif defined(GUI)
|
||||||
// TODO add a function for this (duplicated)
|
// TODO add a function for this (duplicated)
|
||||||
menuHandlers[0] = menuMainView;
|
menuHandlers[0] = menuMainView;
|
||||||
#if MENUS_LOCK != 2/*no menus*/
|
#if MENUS_LOCK != 2/*no menus*/
|
||||||
|
|||||||
Reference in New Issue
Block a user