mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-30 05:17:19 +00:00
Close the single-extruder mixed filament warning by type
This commit is contained in:
@@ -10655,6 +10655,14 @@ void GLCanvas3D::_set_warning_notification(EWarning warning, bool state)
|
|||||||
notification_manager.close_slicing_customize_error_notification(NotificationType::BBLNozzleFilamentIncompatible, NotificationLevel::WarningNotificationLevel);
|
notification_manager.close_slicing_customize_error_notification(NotificationType::BBLNozzleFilamentIncompatible, NotificationLevel::WarningNotificationLevel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (warning == EWarning::SingleExtruderMixedFilament) {
|
||||||
|
// Close by type: check_single_extruder_mixed_filament_risk() clears the shared text
|
||||||
|
// buffer on every call, so a close-by-text would miss once the risk is gone.
|
||||||
|
if (state)
|
||||||
|
notification_manager.push_slicing_customize_error_notification(NotificationType::BBLSingleExtruderMixedFilamentRisk, NotificationLevel::WarningNotificationLevel, text);
|
||||||
|
else
|
||||||
|
notification_manager.close_slicing_customize_error_notification(NotificationType::BBLSingleExtruderMixedFilamentRisk, NotificationLevel::WarningNotificationLevel);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
if (state)
|
if (state)
|
||||||
notification_manager.push_plater_warning_notification(text);
|
notification_manager.push_plater_warning_notification(text);
|
||||||
|
|||||||
@@ -174,6 +174,8 @@ enum class NotificationType
|
|||||||
BBLBedFilamentIncompatible,
|
BBLBedFilamentIncompatible,
|
||||||
BBLMixUsePLAAndPETG,
|
BBLMixUsePLAAndPETG,
|
||||||
BBLNozzleFilamentIncompatible,
|
BBLNozzleFilamentIncompatible,
|
||||||
|
// A mixed-color filament is printed on a single-nozzle printer (frequent changes and purging).
|
||||||
|
BBLSingleExtruderMixedFilamentRisk,
|
||||||
OrcaSharedProfilesAvailable,
|
OrcaSharedProfilesAvailable,
|
||||||
OrcaCloudAPIError,
|
OrcaCloudAPIError,
|
||||||
OrcaSyncConflict,
|
OrcaSyncConflict,
|
||||||
|
|||||||
Reference in New Issue
Block a user