adjust widget sizes when switching mode

This commit is contained in:
Miguel Jacq 2018-10-08 10:59:11 +11:00 committed by Micah Lee
parent bc8759bc77
commit 49e371d503
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -200,12 +200,14 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.receive_mode_button.setStyleSheet(self.common.css['mode_switcher_unselected_style'])
self.receive_mode.hide()
self.adjust_size(self.common.min_window_width)
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'])
self.share_mode.hide()
self.adjust_size(self.common.min_window_width)
self.receive_mode.show()
self.update_server_status_indicator()