exportToRemovableFinished notification fix in simple mode

This commit is contained in:
David Kocik 2020-10-22 08:28:28 +02:00
parent 43c6f4cb6c
commit a623630614

View file

@ -3616,16 +3616,16 @@ void Plater::priv::on_process_completed(SlicingProcessCompletedEvent &evt)
if (wxGetApp().get_mode() == comSimple)
sidebar->set_btn_label(ActionButtonType::abReslice, "Slice now");
show_action_buttons(true);
} else {
if(wxGetApp().get_mode() == comSimple) {
show_action_buttons(false);
}
// If writing to removable drive was scheduled, show notification with eject button
if (this->writing_to_removable_device) {
show_action_buttons(false);
notification_manager->push_notification(NotificationType::ExportToRemovableFinished, *q->get_current_canvas3D());
}
}
else if (wxGetApp().get_mode() == comSimple)
{
show_action_buttons(false);
}
else if (this->writing_to_removable_device)
{
show_action_buttons(false);
notification_manager->push_notification(NotificationType::ExportToRemovableFinished, *q->get_current_canvas3D());
}
this->writing_to_removable_device = false;
}