[view.qt] refactoring: using a different approach to cancel file downloads to keep compatibility with older Python versions

This commit is contained in:
Vinicius Moreira
2023-12-12 18:14:12 -03:00
parent d0a7da8ffd
commit 3b7b22c9c7
3 changed files with 27 additions and 10 deletions

View File

@@ -290,8 +290,10 @@ class ManageWindow(QWidget):
self.table_container.setLayout(QVBoxLayout())
self.table_container.layout().setContentsMargins(0, 0, 0, 0)
self.table_apps = PackagesTable(self, self.icon_cache,
download_icons=bool(self.config['download']['icons']))
self.table_apps = PackagesTable(parent=self,
icon_cache=self.icon_cache,
download_icons=bool(self.config['download']['icons']),
logger=logger)
self.table_apps.change_headers_policy()
self.table_container.layout().addWidget(self.table_apps)