mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-15 08:23:00 +00:00
ENH: refresh FilamentUnPrintableOnFirstLayer error state
jira: none Change-Id: Ifec994cdba2c9590d4c1f8b59e6052593fd05bc2 (cherry picked from commit 04eeb40e1eba976e0921686bf6d66599a90e81cc)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user