button for exporting gcode to harddrive

This commit is contained in:
David Kocik 2020-01-02 16:30:28 +01:00
parent b08788cf96
commit 7e97576e56
6 changed files with 74 additions and 29 deletions

View file

@ -503,7 +503,7 @@ void RemovableDriveManager::check_and_notify()
}
}
}
void RemovableDriveManager::add_callback(std::function<void()> callback)
void RemovableDriveManager::add_remove_callback(std::function<void()> callback)
{
m_callbacks.push_back(callback);
}
@ -587,4 +587,8 @@ void RemovableDriveManager::set_did_eject(const bool b)
{
m_did_eject = b;
}
size_t RemovableDriveManager::get_drives_count()
{
return m_current_drives.size();
}
}}//namespace Slicer::Gui