mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
macos implementation
This commit is contained in:
parent
fdc493f6fd
commit
40a83e67dd
3 changed files with 18 additions and 12 deletions
|
@ -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::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue