mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
macos better wrapper
This commit is contained in:
parent
cd1d49b015
commit
bcfc333fb1
3 changed files with 32 additions and 24 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue