[apps/code] Clean ConsoleController code

This commit is contained in:
Léa Saviot
2019-01-04 15:22:12 +01:00
committed by EmilieNumworks
parent 33072eb9b1
commit 1782326ed8
3 changed files with 21 additions and 17 deletions

View File

@@ -93,10 +93,9 @@ App::~App() {
bool App::handleEvent(Ion::Events::Event event) {
if (event == Ion::Events::Home && m_consoleController.inputRunLoopActive()) {
// We need to return true here because we want to actually exit from the
// input run loop, which requires ending a dispatchEvent cycle.
m_consoleController.askInputRunLoopTermination();
m_consoleController.interrupt();
/* We need to return true here because we want to actually exit from the
* input run loop, which requires ending a dispatchEvent cycle. */
m_consoleController.terminateInputLoop();
if (m_modalViewController.isDisplayingModal()) {
m_modalViewController.dismissModalViewController();
}