mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-20 16:59:10 -07:00
Fixing the SD card eject issue on OSX by pushing the call to
"diskutil eject" to a worker thread. Hopefully fixes Ejecting an SD card is slow and locks UI #4844
This commit is contained in:
@@ -132,6 +132,8 @@ private:
|
||||
void eject_device(const std::string &path);
|
||||
// Opaque pointer to RemovableDriveManagerMM
|
||||
void *m_impl_osx;
|
||||
std::thread *m_eject_thread { nullptr };
|
||||
void eject_thread_finish();
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user