eject button functionality

This commit is contained in:
David Kocik 2019-12-11 15:02:20 +01:00
parent 4a7f50ad66
commit 6dddc1cc6b

View File

@ -4603,7 +4603,9 @@ void Plater::export_gcode()
fs::path path = into_path(dlg.GetPath());
wxGetApp().app_config->update_last_output_dir(path.parent_path().string());
output_path = std::move(path);
RemovableDriveManager::get_instance().set_last_save_path(output_path.string());
RemovableDriveManager::get_instance().update(0, true);
RemovableDriveManager::get_instance().set_last_save_path(output_path.string());
}
if (! output_path.empty())
p->export_gcode(std::move(output_path), PrintHostJob());