mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[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:
@@ -325,7 +325,6 @@ bool MenuController::textFieldDidAbortEditing(TextField * textField, const char
|
||||
}
|
||||
|
||||
void MenuController::addScript() {
|
||||
assert(m_scriptStore->numberOfScripts() < k_maxNumberOfScripts);
|
||||
if (m_scriptStore->addNewScript()) {
|
||||
updateAddScriptRowDisplay();
|
||||
m_selectableTableView.reloadData();
|
||||
@@ -387,7 +386,7 @@ void MenuController::intToText(int i, char * buffer) {
|
||||
}
|
||||
|
||||
void MenuController::updateAddScriptRowDisplay() {
|
||||
m_shouldDisplayAddScriptRow = (m_scriptStore->numberOfScripts() < k_maxNumberOfScripts && !m_scriptStore->isFull());
|
||||
m_shouldDisplayAddScriptRow = !m_scriptStore->isFull();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user