mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-28 10:52:08 -04:00
Fixes from_autoconnect check from MainWindow
This commit is contained in:
parent
7e982f2223
commit
df85ea0f60
1 changed files with 5 additions and 1 deletions
|
@ -241,7 +241,11 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||||
Open the TorSettingsTab
|
Open the TorSettingsTab
|
||||||
"""
|
"""
|
||||||
self.common.log("MainWindow", "open_tor_settings")
|
self.common.log("MainWindow", "open_tor_settings")
|
||||||
from_autoconnect = type(self.tabs.tabs[0]) is AutoConnectTab
|
from_autoconnect = False
|
||||||
|
for tab_id in self.tabs.tabs:
|
||||||
|
if type(self.tabs.tabs[tab_id]) is AutoConnectTab:
|
||||||
|
from_autoconnect = True
|
||||||
|
break
|
||||||
self.tabs.open_tor_settings_tab(from_autoconnect)
|
self.tabs.open_tor_settings_tab(from_autoconnect)
|
||||||
|
|
||||||
def open_settings(self):
|
def open_settings(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue