mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
macos eject
This commit is contained in:
parent
6dddc1cc6b
commit
38c69f16f0
4 changed files with 11 additions and 1 deletions
|
@ -425,6 +425,10 @@ bool RemovableDriveManager::update(const long time, bool check)
|
|||
return false; // return value shouldnt matter if update didnt run
|
||||
}
|
||||
}
|
||||
if(check)
|
||||
{
|
||||
m_rdmmm->log("update");
|
||||
}
|
||||
search_for_drives();
|
||||
if(check)check_and_notify();
|
||||
return !m_current_drives.empty();
|
||||
|
@ -466,6 +470,7 @@ void RemovableDriveManager::check_and_notify()
|
|||
//std::cout<<"drives count: "<<m_drives_count;
|
||||
if(m_drives_count != m_current_drives.size())
|
||||
{
|
||||
m_rdmmm->log("drives count not same");
|
||||
//std::cout<<" vs "<< m_current_drives.size();
|
||||
if(m_callbacks.size() != 0 && m_drives_count > m_current_drives.size() && m_last_save_path != "" && !is_drive_mounted(m_last_save_path))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue