1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-14 08:34:26 +00:00

eject button after export

This commit is contained in:
David Kocik
2019-12-12 10:48:33 +01:00
parent 1d25201a12
commit 2c7b711f76
3 changed files with 10 additions and 9 deletions
+5 -4
View File
@@ -4158,7 +4158,7 @@ void Plater::priv::show_action_buttons(const bool is_ready_to_slice) const
if (sidebar->show_reslice(false) |
sidebar->show_export(true) |
sidebar->show_send(send_gcode_shown) |
sidebar->show_disconnect(disconnect_shown))
sidebar->show_disconnect(false/*disconnect_shown*/))
sidebar->Layout();
}
else
@@ -4709,12 +4709,13 @@ 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().update(0, true);
RemovableDriveManager::get_instance().set_last_save_path(output_path.string());
}
if (! output_path.empty())
{
RemovableDriveManager::get_instance().update(0, true);
RemovableDriveManager::get_instance().set_last_save_path(output_path.string());
p->export_gcode(std::move(output_path), PrintHostJob());
}
}