macos device detection

This commit is contained in:
Slic3rPE 2019-12-17 13:08:17 +01:00
parent fad035137f
commit b8aa12486e
5 changed files with 96 additions and 2 deletions

View file

@ -354,6 +354,7 @@ void RemovableDriveManager::eject_drive(const std::string &path)
// but neither triggers "succesful safe removal messege"
std::string command = "";
#if __APPLE__
//m_rdmmm->eject_device(path);
command = "diskutil unmount ";
#else
command = "umount ";
@ -365,6 +366,7 @@ void RemovableDriveManager::eject_drive(const std::string &path)
std::cerr<<"Ejecting failed\n";
return;
}
m_did_eject = true;
m_current_drives.erase(it);