mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 15:59:00 +08:00
SPE-2605: Prevent empty slicing notification when switching beds.
This commit is contained in:
parent
b732a5b744
commit
cdde5e87d7
@ -3108,7 +3108,13 @@ void Plater::priv::on_slicing_update(SlicingStatusEvent &evt)
|
||||
// Avoid a race condition
|
||||
return;
|
||||
}
|
||||
notification_manager->set_slicing_progress_percentage(evt.status.text, (float)evt.status.percent / 100.0f);
|
||||
if (evt.status.percent < 0 && evt.status.text.empty()) {
|
||||
// empty text and negative percent means there is a bed switch
|
||||
// we hide the notification and it will init itself again via the incoming progress (if there is any)
|
||||
notification_manager->set_slicing_progress_hidden();
|
||||
} else {
|
||||
notification_manager->set_slicing_progress_percentage(evt.status.text, (float)evt.status.percent / 100.0f);
|
||||
}
|
||||
}
|
||||
|
||||
// Check template filaments and add warning
|
||||
|
Loading…
x
Reference in New Issue
Block a user