[view] improvement: only displaying both the installed and latest versions on the 'version' column if its width is no more than 20% of the primary screen width

This commit is contained in:
Vinicius Moreira
2022-05-17 10:37:45 -03:00
parent 712a72edf6
commit 0c07ef410c
3 changed files with 12 additions and 5 deletions

View File

@@ -277,7 +277,9 @@ 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(self, self.icon_cache,
download_icons=bool(self.config['download']['icons']),
screen_width=int(screen_size.width()))
self.table_apps.change_headers_policy()
self.table_container.layout().addWidget(self.table_apps)