[openpgp] Fix enabling OpenPGP encryption when running wizard
Fixes #609
This commit is contained in:
@@ -79,9 +79,8 @@ class KeyWizard(Gtk.Assistant):
|
|||||||
main_box.remove(sidebar)
|
main_box.remove(sidebar)
|
||||||
|
|
||||||
def _activate_encryption(self):
|
def _activate_encryption(self):
|
||||||
action = app.window.lookup_action(
|
action = app.window.lookup_action('set-encryption')
|
||||||
'set-encryption-%s' % self._chat_control.control_id)
|
action.activate(GLib.Variant('s', self._plugin.encryption_name))
|
||||||
action.activate(GLib.Variant("s", self._plugin.encryption_name))
|
|
||||||
|
|
||||||
def _on_page_change(self, assistant, page):
|
def _on_page_change(self, assistant, page):
|
||||||
if self.get_current_page() == Page.NEWKEY:
|
if self.get_current_page() == Page.NEWKEY:
|
||||||
|
|||||||
Reference in New Issue
Block a user