mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-15 21:02:22 -04:00
adjust widget sizes when switching mode
This commit is contained in:
parent
bf56548e7e
commit
331d7bf9c7
1 changed files with 2 additions and 0 deletions
|
@ -200,12 +200,14 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
||||||
self.receive_mode_button.setStyleSheet(self.common.css['mode_switcher_unselected_style'])
|
self.receive_mode_button.setStyleSheet(self.common.css['mode_switcher_unselected_style'])
|
||||||
|
|
||||||
self.receive_mode.hide()
|
self.receive_mode.hide()
|
||||||
|
self.adjust_size(self.common.min_window_width)
|
||||||
self.share_mode.show()
|
self.share_mode.show()
|
||||||
else:
|
else:
|
||||||
self.share_mode_button.setStyleSheet(self.common.css['mode_switcher_unselected_style'])
|
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.receive_mode_button.setStyleSheet(self.common.css['mode_switcher_selected_style'])
|
||||||
|
|
||||||
self.share_mode.hide()
|
self.share_mode.hide()
|
||||||
|
self.adjust_size(self.common.min_window_width)
|
||||||
self.receive_mode.show()
|
self.receive_mode.show()
|
||||||
|
|
||||||
self.update_server_status_indicator()
|
self.update_server_status_indicator()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue