button show after write

This commit is contained in:
David Kocik 2019-12-12 14:56:30 +01:00
parent 2c7b711f76
commit 9085440c15
3 changed files with 10 additions and 37 deletions

View file

@ -3179,6 +3179,7 @@ void Plater::priv::update_fff_scene()
this->preview->reload_print();
// In case this was MM print, wipe tower bounding box on 3D tab might need redrawing with exact depth:
view3D->reload_scene(true);
show_action_buttons(false);
}
void Plater::priv::update_sla_scene()
@ -4158,7 +4159,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(false/*disconnect_shown*/))
sidebar->show_disconnect(disconnect_shown))
sidebar->Layout();
}
else
@ -4712,9 +4713,10 @@ void Plater::export_gcode()
}
if (! output_path.empty())
{
RemovableDriveManager::get_instance().update(0, true);
RemovableDriveManager::get_instance().set_last_save_path(output_path.string());
std::string path = output_path.string();
p->export_gcode(std::move(output_path), PrintHostJob());
RemovableDriveManager::get_instance().update(0, true);
RemovableDriveManager::get_instance().set_last_save_path(path);
}
}