mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 08:44:40 +01:00
Show password window in first time enabling password
This commit is contained in:
parent
eb9accceda
commit
4d24d767b4
1 changed files with 5 additions and 1 deletions
|
@ -157,6 +157,10 @@ class SettingsWindow(Gtk.Window):
|
|||
"""
|
||||
self.password_button.set_sensitive(switch.get_active())
|
||||
self.cfg.update("state", switch.get_active(), "login")
|
||||
if switch.get_active():
|
||||
password = self.cfg.read("password", "login")
|
||||
if len(password) == 0:
|
||||
self.new_password_window()
|
||||
|
||||
self.parent.refresh_window()
|
||||
|
||||
|
@ -172,4 +176,4 @@ class SettingsWindow(Gtk.Window):
|
|||
Close the window
|
||||
"""
|
||||
self.hide()
|
||||
return True
|
||||
return True
|
||||
|
|
Loading…
Add table
Reference in a new issue