[apps/code] Fix getopt handling

This commit is contained in:
Romain Goyet
2018-06-05 13:32:00 +02:00
committed by EmilieNumworks
parent 96846e9396
commit c0d3b97c6b
3 changed files with 4 additions and 16 deletions

View File

@@ -72,16 +72,12 @@ void App::Snapshot::setOpt(const char * name, char * value) {
App::App(Container * container, Snapshot * snapshot) :
::App(container, snapshot, &m_codeStackViewController, I18n::Message::Warning),
m_consoleController(nullptr, snapshot->scriptStore()
#if EPSILON_GETOPT
, lockOnConsole
#endif
),
m_listFooter(&m_codeStackViewController, &m_menuController, &m_menuController, ButtonRowController::Position::Bottom, ButtonRowController::Style::EmbossedGrey, ButtonRowController::Size::Large),
m_menuController(&m_listFooter, snapshot->scriptStore(), &m_listFooter
#if EPSILON_GETOPT
, snapshot->lockOnConsole()
#endif
),
m_listFooter(&m_codeStackViewController, &m_menuController, &m_menuController, ButtonRowController::Position::Bottom, ButtonRowController::Style::EmbossedGrey, ButtonRowController::Size::Large),
m_menuController(&m_listFooter, snapshot->scriptStore(), &m_listFooter),
m_codeStackViewController(&m_modalViewController, &m_listFooter),
m_variableBoxController(&m_menuController, snapshot->scriptStore())
{