mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 17:35:59 +08:00
SPE-2605: Prevent empty slicing notification when switching beds.
This commit is contained in:
parent
b732a5b744
commit
cdde5e87d7
@ -3108,8 +3108,14 @@ void Plater::priv::on_slicing_update(SlicingStatusEvent &evt)
|
|||||||
// Avoid a race condition
|
// Avoid a race condition
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
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);
|
notification_manager->set_slicing_progress_percentage(evt.status.text, (float)evt.status.percent / 100.0f);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check template filaments and add warning
|
// Check template filaments and add warning
|
||||||
// This is more convinient to do here than in slicing backend, so it happens on "Slicing complete".
|
// This is more convinient to do here than in slicing backend, so it happens on "Slicing complete".
|
||||||
|
Loading…
x
Reference in New Issue
Block a user