mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-24 06:24:19 -04:00
Process Qt events once more, to prevent weird size issues before adjusting size
This commit is contained in:
parent
35065106ef
commit
08ac4137c7
2 changed files with 1 additions and 1 deletions
|
@ -350,4 +350,5 @@ class Mode(QtWidgets.QWidget):
|
||||||
Always resize the window after showing this Mode widget.
|
Always resize the window after showing this Mode widget.
|
||||||
"""
|
"""
|
||||||
super(Mode, self).show()
|
super(Mode, self).show()
|
||||||
|
self.qtapp.processEvents()
|
||||||
self.resize_window()
|
self.resize_window()
|
||||||
|
|
|
@ -454,7 +454,6 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
||||||
"""
|
"""
|
||||||
self.setMinimumWidth(min_width)
|
self.setMinimumWidth(min_width)
|
||||||
|
|
||||||
# Recursively adjust sizes for the modes
|
|
||||||
def adjust_size_layout(layout):
|
def adjust_size_layout(layout):
|
||||||
count = layout.count()
|
count = layout.count()
|
||||||
for i in range(count):
|
for i in range(count):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue