macos implementation

This commit is contained in:
Slic3rPE 2019-12-10 11:17:12 +01:00
parent fdc493f6fd
commit 40a83e67dd
3 changed files with 18 additions and 12 deletions

View file

@ -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::