fix: B&W needs to know about spaces as well!

Finishes #645 as model notes with `_` and `0x20`
(space) are tested for  model notes filename also.
This commit is contained in:
Peter Feerick
2022-08-14 11:50:40 +10:00
committed by Peter Feerick
parent c088d1d2f9
commit 7800a6de42
4 changed files with 14 additions and 8 deletions
+7 -1
View File
@@ -25,8 +25,14 @@ void menuModelNotes(event_t event)
{
if (event == EVT_ENTRY) {
strcpy(reusableBuffer.viewText.filename, MODELS_PATH "/");
char *buf = strcat_currentmodelname(&reusableBuffer.viewText.filename[sizeof(MODELS_PATH)], 0);
char *buf = strcat_currentmodelname(
&reusableBuffer.viewText.filename[sizeof(MODELS_PATH)], ' ');
strcpy(buf, TEXT_EXT);
if (!isFileAvailable(reusableBuffer.viewText.filename)) {
buf = strcat_currentmodelname(
&reusableBuffer.viewText.filename[sizeof(MODELS_PATH)], 0);
strcpy(buf, TEXT_EXT);
}
}
menuTextView(event);