Fix lcd_status_message_level

This commit is contained in:
3d-gussner 2024-12-24 07:12:12 +01:00
parent b9eaa95ce1
commit e427c4fb4e
1 changed files with 5 additions and 5 deletions

View File

@ -542,14 +542,14 @@ void lcdui_print_status_line(void) {
break;
}
}
else if (((IS_SD_PRINTING) &&
(custom_message_type == CustomMsg::Status) &&
(lcd_status_message_level <= LCD_STATUS_INFO) &&
lcd_status_message_timeout.expired_cont(LCD_STATUS_INFO_TIMEOUT))
else if (((IS_SD_PRINTING)
#ifdef SHOW_FILENAME_AFTER_FINISH
|| (GetPrinterState() == PrinterState::SDPrintingFinished)
#endif //SHOW_FILENAME_AFTER_FINISH
)
) &&
(custom_message_type == CustomMsg::Status) &&
(lcd_status_message_level <= LCD_STATUS_INFO) &&
lcd_status_message_timeout.expired_cont(LCD_STATUS_INFO_TIMEOUT))
{
// If printing from SD, show what we are printing
const char* longFilenameOLD = (card.longFilename[0] ? card.longFilename : card.filename);