mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-18 07:05:55 +08:00
FIX: not cache printer file list on error
Change-Id: I99843aedbf14d3d1d553ccac9b0bd26403274a82 Jira: none
This commit is contained in:
parent
5011621ad8
commit
f4b062640d
@ -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…
x
Reference in New Issue
Block a user