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:
committed by
Peter Feerick
parent
c088d1d2f9
commit
7800a6de42
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user