Only reload settings if a mode has been selected

This commit is contained in:
Micah Lee 2019-11-28 15:46:55 -08:00
parent 5a0ee67dc7
commit b80fc5be17
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -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")