Fix crash in ui
This commit is contained in:
parent
c15447aab3
commit
f7da373fa0
|
@ -166,9 +166,6 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
|
||||||
status = goldwarden.get_vault_status()
|
status = goldwarden.get_vault_status()
|
||||||
print("status", status)
|
print("status", status)
|
||||||
runtimeCfg = goldwarden.get_runtime_config()
|
runtimeCfg = goldwarden.get_runtime_config()
|
||||||
if runtimeCfg != None:
|
|
||||||
self.ssh_row.set_subtitle("Listening at "+runtimeCfg["SSHAgentSocketPath"])
|
|
||||||
self.goldwarden_daemon_row.set_subtitle("Listening at "+runtimeCfg["goldwardenSocketPath"])
|
|
||||||
|
|
||||||
if status != None:
|
if status != None:
|
||||||
if pin_set:
|
if pin_set:
|
||||||
|
@ -179,15 +176,11 @@ class SettingsWinvdow(Gtk.ApplicationWindow):
|
||||||
self.banner.set_revealed(True)
|
self.banner.set_revealed(True)
|
||||||
logged_in = status["loggedIn"]
|
logged_in = status["loggedIn"]
|
||||||
if logged_in and not status["locked"]:
|
if logged_in and not status["locked"]:
|
||||||
self.preferences_group.set_visible(True)
|
|
||||||
self.shortcut_preferences_group.set_visible(True)
|
|
||||||
self.autotype_button.set_visible(True)
|
self.autotype_button.set_visible(True)
|
||||||
self.login_row.set_sensitive(True)
|
self.login_row.set_sensitive(True)
|
||||||
self.notes_row.set_sensitive(True)
|
self.notes_row.set_sensitive(True)
|
||||||
self.websocket_connected_row.set_sensitive(True)
|
self.websocket_connected_row.set_sensitive(True)
|
||||||
else:
|
else:
|
||||||
self.preferences_group.set_visible(False)
|
|
||||||
self.shortcut_preferences_group.set_visible(False)
|
|
||||||
self.autotype_button.set_visible(False)
|
self.autotype_button.set_visible(False)
|
||||||
self.websocket_connected_row.set_sensitive(False)
|
self.websocket_connected_row.set_sensitive(False)
|
||||||
self.login_row.set_sensitive(False)
|
self.login_row.set_sensitive(False)
|
||||||
|
|
Loading…
Reference in New Issue