macos better wrapper

This commit is contained in:
Slic3rPE 2019-12-11 11:00:47 +01:00
parent cd1d49b015
commit bcfc333fb1
3 changed files with 32 additions and 24 deletions

View file

@ -391,13 +391,23 @@ std::string RemovableDriveManager::get_drive_from_path(const std::string& path)
return "";
}
#endif
RemovableDriveManager::RemovableDriveManager():
m_drives_count(0),
m_last_update(0),
m_last_save_path(""),
#if __APPLE__
m_rdmmm(new RDMMMWrapper())
#endif
{}
void RemovableDriveManager::init()
{
add_callback([](void) { RemovableDriveManager::get_instance().print(); });
#if _WIN32
register_window();
#elif __APPLE__
register_window();
m_rdmmm->register_window();
#endif
update();
}