Increase minimum window with to 460, and store it in a variable to stop repeating myself

This commit is contained in:
Micah Lee 2018-09-29 15:12:05 -07:00
parent 8ca34fadd9
commit 39dd0862d4
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
4 changed files with 7 additions and 5 deletions

View file

@ -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):
"""