Singleton ViewMain

This requires https://github.com/opentx/libopenui/pull/10
This commit is contained in:
Raphael Coeffic
2021-04-06 10:20:49 +02:00
parent df86daa867
commit 1335bcf8db
5 changed files with 39 additions and 35 deletions
+1 -4
View File
@@ -1896,10 +1896,7 @@ void opentxInit()
{
TRACE("opentxInit");
#if defined(LIBOPENUI)
new MainWindow();
new ViewMain();
#elif defined(GUI)
#if defined(GUI) && !defined(LIBOPENUI)
// TODO add a function for this (duplicated)
menuHandlers[0] = menuMainView;
#if MENUS_LOCK != 2/*no menus*/