From f96e60a14adf3f5bc35a68fdd8b377c4dda7ca52 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Thu, 15 Jun 2023 18:36:09 +0800 Subject: [PATCH] FIX: [STUDIO-3254] deselect all files when changing list type Change-Id: I6904653093bcf72c4df8f98877e2bbd7f3cf4ae9 --- src/slic3r/GUI/Printer/PrinterFileSystem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/Printer/PrinterFileSystem.cpp b/src/slic3r/GUI/Printer/PrinterFileSystem.cpp index 792ad21a6..05ad24164 100644 --- a/src/slic3r/GUI/Printer/PrinterFileSystem.cpp +++ b/src/slic3r/GUI/Printer/PrinterFileSystem.cpp @@ -83,6 +83,7 @@ void PrinterFileSystem::SetFileType(FileType type, std::string const &storage) { if (m_file_type == type && m_file_storage == storage) return; + SelectAll(false); assert(m_file_list_cache[std::make_pair(m_file_type, m_file_storage)].empty()); m_file_list.swap(m_file_list_cache[{m_file_type, m_file_storage}]); std::swap(m_file_type, type); @@ -1203,6 +1204,7 @@ void PrinterFileSystem::Reconnect(boost::unique_lock &l, int resul } wxLogMessage("PrinterFileSystem::Reconnect Initializing"); m_status = Status::Initializing; + m_last_error = 0; SendChangedEvent(EVT_STATUS_CHANGED, m_status); // wait for url while (!m_stopped && m_messages.empty())