mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-30 09:59:02 -04:00
adjust widget sizes when switching mode
This commit is contained in:
parent
bc8759bc77
commit
49e371d503
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