mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Process Qt events once more, to prevent weird size issues before adjusting size
This commit is contained in:
parent
35065106ef
commit
08ac4137c7
@ -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()
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user