[fix][ui] table resize when there are updates

This commit is contained in:
Vinícius Moreira
2020-01-10 17:43:36 -03:00
parent 7ab1010e24
commit 2988aec3ad
2 changed files with 11 additions and 6 deletions

View File

@@ -837,6 +837,9 @@ class ManageWindow(QWidget):
new_width = max(table_width, toolbar_width, topbar_width)
if self.bt_upgrade.isVisible():
new_width *= 1.03 # this extra size is not because of the toolbar button, but the table upgrade buttons
if (self.pkgs and accept_lower_width) or new_width > self.width():
self.resize(new_width, self.height())