[code] The maximal number of scripts is stored in the ScriptStore.

It was in the MenuController before.

Change-Id: I5f48465d92b53079dc358feec7a4b713875c7e2d
This commit is contained in:
Léa Saviot
2017-11-22 11:04:14 +01:00
parent 9d82804ff3
commit 37a2def2f1
4 changed files with 3 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ void ScriptStore::deleteAllScripts() {
}
bool ScriptStore::isFull() {
return (m_accordion.freeSpaceSize() < k_fullFreeSpaceSizeLimit);
return (numberOfScripts() >= k_maxNumberOfScripts || m_accordion.freeSpaceSize() < k_fullFreeSpaceSizeLimit);
}
const char * ScriptStore::contentOfScript(const char * name) {