From bfc9dda1f6bc9efa9e2616c98ba38c3b52f2ad3f Mon Sep 17 00:00:00 2001 From: David Kocik Date: Mon, 16 Dec 2019 15:47:36 +0100 Subject: [PATCH] save last path earlier --- src/slic3r/GUI/Plater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 63521815d..7cd4f195b 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -4733,9 +4733,9 @@ void Plater::export_gcode() { std::string path = output_path.string(); RemovableDriveManager::get_instance().set_is_writing(true); - p->export_gcode(std::move(output_path), PrintHostJob()); RemovableDriveManager::get_instance().update(0, true); RemovableDriveManager::get_instance().set_last_save_path(path); + p->export_gcode(std::move(output_path), PrintHostJob()); if(!RemovableDriveManager::get_instance().is_last_drive_removed()) { RemovableDriveManager::get_instance().erase_callbacks();