mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
Forced SD card / USB drive eject now sends out the event immediately
on Windows as well as on Unix platforms including OSX.
This commit is contained in:
parent
e83fb4582c
commit
aac691c0e7
2 changed files with 7 additions and 20 deletions
|
@ -101,12 +101,6 @@ private:
|
|||
// m_current_drives is guarded by m_drives_mutex
|
||||
// sorted ascending by path
|
||||
std::vector<DriveData> m_current_drives;
|
||||
// When user requested an eject, the drive to be forcefuly ejected is stored here, so the next update will
|
||||
// recognize that the eject was finished with success and an eject event is sent out.
|
||||
// guarded with m_drives_mutex
|
||||
#ifdef WIN32
|
||||
DriveData m_drive_data_last_eject;
|
||||
#endif // WIN32
|
||||
mutable tbb::mutex m_drives_mutex;
|
||||
|
||||
// Returns drive path (same as path in DriveData) if exists otherwise empty string.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue