Only add a stretch at the bottom of the layout in receive mode, not share mode

This commit is contained in:
Micah Lee 2018-09-19 19:38:29 -07:00
parent 1314ddf1be
commit 871135cc75
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,6 @@ class Mode(QtWidgets.QWidget):
# Layout
self.layout = QtWidgets.QVBoxLayout()
self.layout.addWidget(self.primary_action)
self.layout.addStretch()
# Hack to allow a minimum width on self.layout
min_width_widget = QtWidgets.QWidget()
min_width_widget.setMinimumWidth(450)

View File

@ -79,6 +79,7 @@ class ReceiveMode(Mode):
# Layout
self.layout.insertWidget(0, self.receive_info)
self.layout.insertWidget(0, self.info_widget)
self.layout.addStretch()
self.horizontal_layout_wrapper.addWidget(self.uploads)
def get_stop_server_shutdown_timeout_text(self):