mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-02 17:44:57 -05:00
Reflects the autoconnect status on toggle checkbox on opening
This commit is contained in:
parent
4c3af76a5b
commit
bbdfea218e
@ -73,9 +73,6 @@ class AutoConnectTab(QtWidgets.QWidget):
|
||||
strings._("gui_enable_autoconnect_checkbox")
|
||||
)
|
||||
self.enable_autoconnect_checkbox.clicked.connect(self.toggle_auto_connect)
|
||||
# self.enable_autoconnect_checkbox.setText(
|
||||
# strings._("gui_enable_autoconnect_checkbox")
|
||||
# )
|
||||
self.enable_autoconnect_checkbox.setFixedWidth(400)
|
||||
self.enable_autoconnect_checkbox.setStyleSheet(
|
||||
common.gui.css["enable_autoconnect"]
|
||||
@ -136,6 +133,7 @@ class AutoConnectTab(QtWidgets.QWidget):
|
||||
self.setLayout(self.layout)
|
||||
|
||||
if self.auto_connect_enabled:
|
||||
self.enable_autoconnect_checkbox.setCheckState(QtCore.Qt.Checked)
|
||||
self.connect_clicked()
|
||||
|
||||
def toggle_auto_connect(self):
|
||||
|
@ -541,7 +541,6 @@ class GuiCommon:
|
||||
class ToggleCheckbox(QtWidgets.QCheckBox):
|
||||
def __init__(self, text):
|
||||
super(ToggleCheckbox, self).__init__(text)
|
||||
print(text)
|
||||
# Set default parameters
|
||||
self.setCursor(QtCore.Qt.PointingHandCursor)
|
||||
self.w = 50
|
||||
|
Loading…
x
Reference in New Issue
Block a user