mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
save last path earlier
This commit is contained in:
@@ -4733,9 +4733,9 @@ void Plater::export_gcode()
|
|||||||
{
|
{
|
||||||
std::string path = output_path.string();
|
std::string path = output_path.string();
|
||||||
RemovableDriveManager::get_instance().set_is_writing(true);
|
RemovableDriveManager::get_instance().set_is_writing(true);
|
||||||
p->export_gcode(std::move(output_path), PrintHostJob());
|
|
||||||
RemovableDriveManager::get_instance().update(0, true);
|
RemovableDriveManager::get_instance().update(0, true);
|
||||||
RemovableDriveManager::get_instance().set_last_save_path(path);
|
RemovableDriveManager::get_instance().set_last_save_path(path);
|
||||||
|
p->export_gcode(std::move(output_path), PrintHostJob());
|
||||||
if(!RemovableDriveManager::get_instance().is_last_drive_removed())
|
if(!RemovableDriveManager::get_instance().is_last_drive_removed())
|
||||||
{
|
{
|
||||||
RemovableDriveManager::get_instance().erase_callbacks();
|
RemovableDriveManager::get_instance().erase_callbacks();
|
||||||
|
|||||||
Reference in New Issue
Block a user