use proxy model for check of files existence

This commit is contained in:
Jakub Trllo 2022-02-21 16:50:25 +01:00
parent 926eb5b95e
commit b7f6e2dd55

View file

@ -552,7 +552,7 @@ class MultiFilesWidget(QtWidgets.QFrame):
self._update_visibility()
def _update_visibility(self):
files_exists = self._files_model.rowCount() > 0
files_exists = self._files_proxy_model.rowCount() > 0
self._files_view.setVisible(files_exists)
self._empty_widget.setVisible(not files_exists)