eject button functionality

This commit is contained in:
David Kocik 2019-12-11 17:42:56 +01:00
parent 7602cde289
commit e2048775f6

View File

@ -4891,12 +4891,11 @@ void Plater::send_gcode()
void Plater::eject_drive()
{
if (GUI::RemovableDriveManager::get_instance().update(0, true))
{
RemovableDriveManager::get_instance().update(0, true);
RemovableDriveManager::get_instance().erase_callbacks();
RemovableDriveManager::get_instance().add_callback(std::bind(&Plater::drive_ejected_callback, this));
RemovableDriveManager::get_instance().eject_drive(RemovableDriveManager::get_instance().get_last_save_path());
}
}
void Plater::drive_ejected_callback()
{