mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
macos device detection
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user