mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
[Horus] Category rename was not saved on SD
This commit is contained in:
parent
0f33b1b0a9
commit
a7e1867878
1 changed files with 2 additions and 5 deletions
|
@ -122,9 +122,6 @@ void onModelSelectMenu(const char * result)
|
||||||
else if (result == STR_DELETE_MODEL) {
|
else if (result == STR_DELETE_MODEL) {
|
||||||
POPUP_CONFIRMATION(STR_DELETEMODEL);
|
POPUP_CONFIRMATION(STR_DELETEMODEL);
|
||||||
SET_WARNING_INFO(currentModel->name, LEN_MODEL_FILENAME, 0);
|
SET_WARNING_INFO(currentModel->name, LEN_MODEL_FILENAME, 0);
|
||||||
}
|
|
||||||
else if (result == STR_CHANGE_CATEGORY) {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (result == STR_CREATE_MODEL) {
|
else if (result == STR_CREATE_MODEL) {
|
||||||
storageCheck(true);
|
storageCheck(true);
|
||||||
|
@ -253,7 +250,7 @@ bool menuModelSelect(evt_t event)
|
||||||
}
|
}
|
||||||
// POPUP_MENU_ADD_SD_ITEM(STR_BACKUP_MODEL);
|
// POPUP_MENU_ADD_SD_ITEM(STR_BACKUP_MODEL);
|
||||||
// POPUP_MENU_ADD_ITEM(STR_MOVE_MODEL);
|
// POPUP_MENU_ADD_ITEM(STR_MOVE_MODEL);
|
||||||
POPUP_MENU_ADD_ITEM(STR_CHANGE_CATEGORY);
|
// POPUP_MENU_ADD_ITEM(STR_CHANGE_CATEGORY);
|
||||||
if (currentModel != modelslist.currentModel) {
|
if (currentModel != modelslist.currentModel) {
|
||||||
POPUP_MENU_ADD_ITEM(STR_DELETE_MODEL);
|
POPUP_MENU_ADD_ITEM(STR_DELETE_MODEL);
|
||||||
}
|
}
|
||||||
|
@ -283,7 +280,7 @@ bool menuModelSelect(evt_t event)
|
||||||
lcdDrawSolidFilledRect(0, y-INVERT_VERT_MARGIN+1, CATEGORIES_WIDTH-2, INVERT_LINE_HEIGHT, TEXT_BGCOLOR);
|
lcdDrawSolidFilledRect(0, y-INVERT_VERT_MARGIN+1, CATEGORIES_WIDTH-2, INVERT_LINE_HEIGHT, TEXT_BGCOLOR);
|
||||||
editName(MENUS_MARGIN_LEFT, y, currentCategory->name, LEN_MODEL_FILENAME, event, 1, 0);
|
editName(MENUS_MARGIN_LEFT, y, currentCategory->name, LEN_MODEL_FILENAME, event, 1, 0);
|
||||||
if (s_editMode == 0 || event == EVT_KEY_BREAK(KEY_EXIT)) {
|
if (s_editMode == 0 || event == EVT_KEY_BREAK(KEY_EXIT)) {
|
||||||
// storageRenameCategory(currentCategory, selectedCategory);
|
modelslist.save();
|
||||||
selectMode = MODE_SELECT_CATEGORY;
|
selectMode = MODE_SELECT_CATEGORY;
|
||||||
putEvent(EVT_REFRESH);
|
putEvent(EVT_REFRESH);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue