button for exporting gcode to harddrive

This commit is contained in:
David Kocik committed 2020-01-21 13:29:39 +01:00
1 parent b08788cf96
commit 7e97576e56
6 files changed
+74 -29

No files matched your search

+5 -1
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