Connect gpg agent action correctly

Fixes #9660
This commit is contained in:
Philipp Hörist 2019-04-09 22:26:03 +02:00
parent de790f5e4c
commit 0dbcac4efe
1 changed files with 1 additions and 0 deletions

View File

@ -391,6 +391,7 @@ class GajimApplication(Gtk.Application):
act = Gio.SimpleAction.new_stateful( act = Gio.SimpleAction.new_stateful(
'agent', None, 'agent', None,
GLib.Variant.new_boolean(app.config.get('use_gpg_agent'))) GLib.Variant.new_boolean(app.config.get('use_gpg_agent')))
act.connect('change-state', app_actions.on_use_pgp_agent)
self.add_action(act) self.add_action(act)
# General Actions # General Actions