Bitmaps with a too big filename were displayed in the selection popup (#4646)
This commit is contained in:
committed by
Andre Bernet
parent
e48b1fd07d
commit
e0022ac287
@@ -97,7 +97,7 @@ enum MenuModelSetupItems {
|
||||
void onModelSetupBitmapMenu(const char * result)
|
||||
{
|
||||
if (result == STR_UPDATE_LIST) {
|
||||
if (!sdListFiles(BITMAPS_PATH, BITMAPS_EXT, sizeof(g_model.header.bitmap), NULL)) {
|
||||
if (!sdListFiles(BITMAPS_PATH, BITMAPS_EXT, sizeof(g_model.header.bitmap)-LEN_BITMAPS_EXT, NULL)) {
|
||||
POPUP_WARNING(STR_NO_BITMAPS_ON_SD);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user