mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-18 02:12:18 -07:00
FIX: not cache printer file list on error
Change-Id: I99843aedbf14d3d1d553ccac9b0bd26403274a82 Jira: none
This commit is contained in:
parent
5011621ad8
commit
f4b062640d
1 changed files with 5 additions and 1 deletions
|
|
@ -160,8 +160,12 @@ void PrinterFileSystem::ListAllFiles()
|
|||
}, [this, type = m_file_type](int result, FileList list) {
|
||||
if (result != 0) {
|
||||
m_last_error = result;
|
||||
m_status = Status::ListReady;
|
||||
m_status = Status::Failed;
|
||||
m_file_list.clear();
|
||||
BuildGroups();
|
||||
UpdateGroupSelect();
|
||||
SendChangedEvent(EVT_STATUS_CHANGED, m_status, "", result);
|
||||
SendChangedEvent(EVT_FILE_CHANGED);
|
||||
return 0;
|
||||
}
|
||||
if (type != m_file_type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue