FIX:fixed a crash caused by mobile devices when switching languages

Change-Id: I7f28bf6bd917b16a798eea9b661987205ab3e1c8
This commit is contained in:
tao wang 2022-09-28 10:41:56 +08:00 committed by Lane.Wei
parent cb569fdb55
commit 4e4472c5b6
2 changed files with 5 additions and 0 deletions

View File

@ -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();

View File

@ -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);