mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
macos implementation
This commit is contained in:
@@ -218,11 +218,11 @@ INT_PTR WINAPI WinProcCallback(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
|
||||
#else
|
||||
void RemovableDriveManager::search_for_drives()
|
||||
{
|
||||
|
||||
/*
|
||||
#if __APPLE__
|
||||
list_devices();
|
||||
#endif
|
||||
|
||||
*/
|
||||
m_current_drives.clear();
|
||||
m_current_drives.reserve(26);
|
||||
|
||||
@@ -389,6 +389,8 @@ void RemovableDriveManager::init()
|
||||
add_callback([](void) { RemovableDriveManager::get_instance().print(); });
|
||||
#if _WIN32
|
||||
register_window();
|
||||
#elif __APPLE__
|
||||
register_window();
|
||||
#endif
|
||||
update();
|
||||
}
|
||||
@@ -493,4 +495,4 @@ void RemovableDriveManager::print()
|
||||
//std::cout << "Removed Device: "<<(int)is_last_drive_removed()<<"\n";
|
||||
std::cout << "notified\n";
|
||||
}
|
||||
}}//namespace Slicer::Gui::
|
||||
}}//namespace Slicer::Gui::
|
||||
|
||||
Reference in New Issue
Block a user