ExportOutgoing notification should not show on upload

This commit is contained in:
David Kocik 2021-10-26 14:22:35 +02:00
parent 8bf4408731
commit f23a0298ed

View File

@ -3294,6 +3294,7 @@ void Plater::priv::export_gcode(fs::path output_path, bool output_path_on_remova
show_warning_dialog = true; show_warning_dialog = true;
if (! output_path.empty()) { if (! output_path.empty()) {
background_process.schedule_export(output_path.string(), output_path_on_removable_media); background_process.schedule_export(output_path.string(), output_path_on_removable_media);
notification_manager->push_delayed_notification(NotificationType::ExportOngoing, []() {return true; }, 1000, 0);
} else { } else {
background_process.schedule_upload(std::move(upload_job)); background_process.schedule_upload(std::move(upload_job));
} }
@ -4030,7 +4031,6 @@ void Plater::priv::on_export_began(wxCommandEvent& evt)
{ {
if (show_warning_dialog) if (show_warning_dialog)
warnings_dialog(); warnings_dialog();
notification_manager->push_delayed_notification(NotificationType::ExportOngoing, [](){return true;}, 1000, 0);
} }
void Plater::priv::on_slicing_began() void Plater::priv::on_slicing_began()
{ {