Make the fixed size of the Polish dialog a lower bound with its sizeHint()

This commit is contained in:
Kovid Goyal 2023-05-29 07:59:05 +05:30
parent 737a7ceeb8
commit c323aeb698
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -145,8 +145,11 @@ class Polish(QDialog): # {{{
connect_lambda(b.clicked, self, lambda self: self.select_all(False))
l.addWidget(bb, count+1, 1, 1, -1)
self.setup_load_button()
self.resize(self.sizeHint())
self.resize(QSize(950, 600))
def sizeHint(self):
sz = super().sizeHint()
return QSize(max(950, sz.width()), max(600, sz.height()))
def select_all(self, enable):
for action in self.all_actions: