mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-25 06:50:25 -04:00
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:
parent
fc1902c1ee
commit
ddcbed451c
3 changed files with 3 additions and 3 deletions
|
@ -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'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue