mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
adjust widget sizes when switching mode
This commit is contained in:
parent
bc8759bc77
commit
49e371d503
@ -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…
Reference in New Issue
Block a user