Hide the uploads and downloads by default, and make the mode switcher hide before showing, to prevent weird window resizing

This commit is contained in:
Micah Lee 2018-09-28 13:18:18 -07:00
parent fc1902c1ee
commit ddcbed451c
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
3 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,6 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.setWindowTitle('OnionShare')
self.setWindowIcon(QtGui.QIcon(self.common.get_resource_path('images/logo.png')))
self.setMinimumWidth(850)
# Load settings
self.config = config
@ -194,8 +193,8 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.share_mode_button.setStyleSheet(self.common.css['mode_switcher_selected_style'])
self.receive_mode_button.setStyleSheet(self.common.css['mode_switcher_unselected_style'])
self.share_mode.show()
self.receive_mode.hide()
self.share_mode.show()
else:
self.share_mode_button.setStyleSheet(self.common.css['mode_switcher_unselected_style'])
self.receive_mode_button.setStyleSheet(self.common.css['mode_switcher_selected_style'])