diff --git a/newsfragments/920.bugfix.rst b/newsfragments/920.bugfix.rst new file mode 100644 index 00000000000..dd5b5d5d641 --- /dev/null +++ b/newsfragments/920.bugfix.rst @@ -0,0 +1 @@ +Clear displayed files on stat error diff --git a/parsec/core/gui/files_widget.py b/parsec/core/gui/files_widget.py index 8ea65315356..5a53527db62 100644 --- a/parsec/core/gui/files_widget.py +++ b/parsec/core/gui/files_widget.py @@ -688,7 +688,11 @@ def _on_folder_stat_success(self, job): self.filter_files(self.line_edit_search.text()) def _on_folder_stat_error(self, job): - pass + self.table_files.clear() + if self.current_directory == FsPath("/"): + self.table_files.add_parent_workspace() + else: + self.table_files.add_parent_folder() def _on_folder_create_success(self, job): pass