ENH: refresh FilamentUnPrintableOnFirstLayer error state

jira: none

Change-Id: Ifec994cdba2c9590d4c1f8b59e6052593fd05bc2
(cherry picked from commit 04eeb40e1eba976e0921686bf6d66599a90e81cc)
This commit is contained in:
liz.li
2024-10-31 16:22:04 +08:00
committed by Noisyfox
parent 6c002687e0
commit 307bb051e6
4 changed files with 30 additions and 1 deletions

View File

@@ -3077,6 +3077,21 @@ void NotificationManager::bbl_close_gcode_overlap_notification()
if (notification->get_type() == NotificationType::BBLGcodeOverlap) { notification->close(); }
}
void NotificationManager::bbl_show_bed_filament_incompatible_notification(const std::string& text)
{
auto callback = [](wxEvtHandler*) {
const wxString bed_filament_compatibility_wiki = "https://wiki.bambulab.com/en/general/filament-guide-material-table";
wxGetApp().open_browser_with_warning_dialog(bed_filament_compatibility_wiki);
return false;
};
push_notification_data({ NotificationType::BBLBedFilamentIncompatible,NotificationLevel::ErrorNotificationLevel,0,_u8L("Error:") + "\n" + text,"Click for more.",callback }, 0);
}
void NotificationManager::bbl_close_bed_filament_incompatible_notification()
{
close_notification_of_type(NotificationType::BBLBedFilamentIncompatible);
}
void NotificationManager::bbl_show_sole_text_notification(NotificationType sType, const std::string &text, bool bOverride, int level, bool autohide) {
NotificationLevel nlevel;