mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-02 01:43:36 -05:00
enumarating removable drives on mac - added Secure Digital option
hopefully a fix for issue #3793
This commit is contained in:
1 parent
56fa84c9d9
commit
0836df93e1
2 files changed
+29
-6
No files matched your search
@@ -338,9 +338,11 @@ void RemovableDriveManager::eject_drive()
|
||||
// there is no usable command in c++ so terminal command is used instead
|
||||
// but neither triggers "succesful safe removal messege"
|
||||
std::string command =
|
||||
#if __APPLE__
|
||||
//this->eject_device(m_last_save_path);
|
||||
#if __APPLE__
|
||||
"diskutil unmount ";
|
||||
//Another option how to eject at mac. Currently not working.
|
||||
//used insted of system() command;
|
||||
//this->eject_device(correct_path);
|
||||
#else
|
||||
"umount ";
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user