mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
macos device detection
This commit is contained in:
parent
fad035137f
commit
b8aa12486e
5 changed files with 96 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue