mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-19 12:04:09 -04:00
Only reload settings if a mode has been selected
This commit is contained in:
parent
5a0ee67dc7
commit
b80fc5be17
1 changed files with 3 additions and 1 deletions
|
@ -501,7 +501,9 @@ class Tab(QtWidgets.QWidget):
|
||||||
if self.common.gui.onion.is_authenticated():
|
if self.common.gui.onion.is_authenticated():
|
||||||
if not self.timer.isActive():
|
if not self.timer.isActive():
|
||||||
self.timer.start(500)
|
self.timer.start(500)
|
||||||
self.get_mode().on_reload_settings()
|
mode = self.get_mode()
|
||||||
|
if mode:
|
||||||
|
mode.on_reload_settings()
|
||||||
|
|
||||||
def close_tab(self):
|
def close_tab(self):
|
||||||
self.common.log("Tab", "close_tab")
|
self.common.log("Tab", "close_tab")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue