diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 6f25048f6..5a9328539 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -1157,6 +1157,10 @@ void GUI_App::shutdown() { BOOST_LOG_TRIVIAL(info) << "shutdown"; + if (m_removable_drive_manager) { + removable_drive_manager()->shutdown(); + } + if (m_is_recreating_gui) return; m_is_closing = true; stop_sync_user_preset(); diff --git a/src/slic3r/GUI/RemovableDriveManager.cpp b/src/slic3r/GUI/RemovableDriveManager.cpp index 10c692a69..fcddcbd61 100644 --- a/src/slic3r/GUI/RemovableDriveManager.cpp +++ b/src/slic3r/GUI/RemovableDriveManager.cpp @@ -387,6 +387,7 @@ std::string RemovableDriveManager::get_removable_drive_from_path(const std::stri void RemovableDriveManager::init(wxEvtHandler *callback_evt_handler) { + //no need use assert assert(! m_initialized); assert(m_callback_evt_handler == nullptr);