mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-01-31 16:08:43 +03:00
PRUSA 2.7.0
This commit is contained in:
@@ -38,6 +38,7 @@ wxDECLARE_EVENT(EVT_REMOVABLE_DRIVE_EJECTED, RemovableDriveEjectEvent);
|
||||
using RemovableDrivesChangedEvent = SimpleEvent;
|
||||
wxDECLARE_EVENT(EVT_REMOVABLE_DRIVES_CHANGED, RemovableDrivesChangedEvent);
|
||||
|
||||
wxDECLARE_EVENT(EVT_REMOVABLE_DRIVE_ADDED, wxCommandEvent);
|
||||
#if __APPLE__
|
||||
// Callbacks on device plug / unplug work reliably on OSX.
|
||||
#define REMOVABLE_DRIVE_MANAGER_OS_CALLBACKS
|
||||
@@ -89,11 +90,14 @@ public:
|
||||
void volumes_changed();
|
||||
#endif // _WIN32
|
||||
|
||||
// returns copy of m_current_drives (protected by mutex)
|
||||
std::vector<DriveData> get_drive_list();
|
||||
private:
|
||||
bool m_initialized { false };
|
||||
wxEvtHandler* m_callback_evt_handler { nullptr };
|
||||
|
||||
|
||||
bool m_first_update{ true };
|
||||
#ifndef REMOVABLE_DRIVE_MANAGER_OS_CALLBACKS
|
||||
// Worker thread, worker thread synchronization and callbacks to the UI thread.
|
||||
void thread_proc();
|
||||
|
||||
Reference in New Issue
Block a user