3djc/horus checklist improvement (#4195)

* Add the possibility of modelfilename.txt to Horus checklist

* Typo

* Cosmetics
This commit is contained in:
3djc
2017-01-08 19:00:45 +01:00
committed by Bertrand Songis
parent e7f258ee45
commit 1642732e8f
2 changed files with 19 additions and 4 deletions
+4 -1
View File
@@ -72,8 +72,11 @@ bool menuModelNotes(event_t event)
strcpy(s_text_file, MODELS_PATH "/");
char *buf = strcat_currentmodelname(&s_text_file[sizeof(MODELS_PATH)]);
strcpy(buf, TEXT_EXT);
if (!isFileAvailable(s_text_file)) {
char *buf = strAppendFilename(&s_text_file[sizeof(MODELS_PATH)], g_eeGeneral.currModelFilename, LEN_MODEL_FILENAME);
strcpy(buf, TEXT_EXT);
}
}
return menuTextView(event);
}