mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-29 17:38:53 -04:00
Put stealth option in a separate advanced group, in anticipation of other advanced options
This commit is contained in:
parent
5c7823daef
commit
3b686b2723
2 changed files with 13 additions and 3 deletions
|
@ -43,12 +43,21 @@ class Options(QtWidgets.QVBoxLayout):
|
|||
# stealth
|
||||
self.stealth = QtWidgets.QCheckBox()
|
||||
self.stealth.setCheckState(QtCore.Qt.Unchecked)
|
||||
self.stealth.setText(strings._("create_stealth", True))
|
||||
self.stealth.setText(strings._("gui_create_stealth", True))
|
||||
self.stealth.stateChanged.connect(self.stealth_changed)
|
||||
|
||||
# advanced options group
|
||||
advanced_group = QtWidgets.QGroupBox(strings._("gui_advanced_options", True))
|
||||
advanced_group.setCheckable(True)
|
||||
advanced_group.setChecked(False)
|
||||
advanced_group.setFlat(True)
|
||||
advanced_group_layout = QtWidgets.QVBoxLayout()
|
||||
advanced_group_layout.addWidget(self.stealth)
|
||||
advanced_group.setLayout(advanced_group_layout)
|
||||
|
||||
# add the widgets
|
||||
self.addWidget(self.close_automatically)
|
||||
self.addWidget(self.stealth)
|
||||
self.addWidget(advanced_group)
|
||||
|
||||
def stay_open_changed(self, state):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue