eject button functionality
This commit is contained in:
parent
7602cde289
commit
e2048775f6
@ -4891,12 +4891,11 @@ void Plater::send_gcode()
|
||||
|
||||
void Plater::eject_drive()
|
||||
{
|
||||
if (GUI::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());
|
||||
}
|
||||
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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user