continues to push notification when export gcode

This commit is contained in:
QIDI TECH
2023-08-18 15:10:30 +08:00
parent c8a236e92f
commit a8e0bd3669
2 changed files with 29 additions and 1 deletions

View File

@@ -3461,7 +3461,9 @@ void Plater::priv::export_gcode(fs::path output_path, bool output_path_on_remova
show_warning_dialog = true;
if (! output_path.empty()) {
background_process.schedule_export(output_path.string(), output_path_on_removable_media);
notification_manager->push_delayed_notification(NotificationType::ExportOngoing, []() {return true; }, 1000, 0);
//Y9
//notification_manager->push_delayed_notification(NotificationType::ExportOngoing, []() {return true; }, 1000, 0);
notification_manager->push_notification(NotificationType::ExportOngoing, NotificationManager::NotificationLevel::ProgressBarNotificationLevel, "aaa");
} else {
background_process.schedule_upload(std::move(upload_job));
}