Process Qt events once more, to prevent weird size issues before adjusting size

This commit is contained in:
Micah Lee 2018-09-28 16:06:14 -07:00
parent 35065106ef
commit 08ac4137c7
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 1 additions and 1 deletions

View File

@ -350,4 +350,5 @@ class Mode(QtWidgets.QWidget):
Always resize the window after showing this Mode widget.
"""
super(Mode, self).show()
self.qtapp.processEvents()
self.resize_window()

View File

@ -454,7 +454,6 @@ class OnionShareGui(QtWidgets.QMainWindow):
"""
self.setMinimumWidth(min_width)
# Recursively adjust sizes for the modes
def adjust_size_layout(layout):
count = layout.count()
for i in range(count):