[apps/code] Handle Home event when in the toolbox

If editing a script, the empty space at the end of the script should be
moved to the end of the storage.
This commit is contained in:
Léa Saviot
2020-01-09 09:53:35 +01:00
parent 67f10d0abd
commit 344ea5a67a
6 changed files with 28 additions and 4 deletions

View File

@@ -156,6 +156,10 @@ void MenuController::scriptContentEditionDidFinish() {
reloadConsole();
}
void MenuController::willExitApp() {
m_editorController.willExitApp();
}
int MenuController::numberOfRows() const {
return m_scriptStore->numberOfScripts() + m_shouldDisplayAddScriptRow;
}