mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
eject button after export
This commit is contained in:
parent
59fa78373b
commit
0cb9a4c542
3 changed files with 10 additions and 9 deletions
|
@ -4052,7 +4052,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
|
||||
|
@ -4603,12 +4603,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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue