mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-21 04:18:25 -04:00
Increase minimum window with to 460, and store it in a variable to stop repeating myself
This commit is contained in:
parent
8ca34fadd9
commit
39dd0862d4
4 changed files with 7 additions and 5 deletions
|
@ -50,7 +50,7 @@ class Mode(QtWidgets.QWidget):
|
|||
|
||||
self.filenames = filenames
|
||||
|
||||
self.setMinimumWidth(450)
|
||||
self.setMinimumWidth(self.common.min_window_width)
|
||||
|
||||
# The web object gets created in init()
|
||||
self.web = None
|
||||
|
@ -83,7 +83,7 @@ class Mode(QtWidgets.QWidget):
|
|||
# Hack to allow a minimum width on the main layout
|
||||
# Note: It's up to the downstream Mode to add this to its layout
|
||||
self.min_width_widget = QtWidgets.QWidget()
|
||||
self.min_width_widget.setMinimumWidth(450)
|
||||
self.min_width_widget.setMinimumWidth(self.common.min_window_width)
|
||||
|
||||
def init(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue