mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Only reload settings if a mode has been selected
This commit is contained in:
parent
5a0ee67dc7
commit
b80fc5be17
@ -501,7 +501,9 @@ class Tab(QtWidgets.QWidget):
|
||||
if self.common.gui.onion.is_authenticated():
|
||||
if not self.timer.isActive():
|
||||
self.timer.start(500)
|
||||
self.get_mode().on_reload_settings()
|
||||
mode = self.get_mode()
|
||||
if mode:
|
||||
mode.on_reload_settings()
|
||||
|
||||
def close_tab(self):
|
||||
self.common.log("Tab", "close_tab")
|
||||
|
Loading…
Reference in New Issue
Block a user