set_did_eject method

This commit is contained in:
David Kocik
2019-12-18 10:08:17 +01:00
parent 7e4e1745af
commit 146b942641
3 changed files with 6 additions and 0 deletions

View File

@@ -5050,6 +5050,7 @@ void Plater::drive_ejected_callback()
{
if (RemovableDriveManager::get_instance().get_did_eject())
{
RemovableDriveManager::get_instance().set_did_eject(false);
wxString message = "Unmounting succesesful. The device " + RemovableDriveManager::get_instance().get_last_save_name() + "(" + RemovableDriveManager::get_instance().get_last_save_path() + ")" + " can now be safely removed from the computer.";
wxMessageBox(message);
}