From 9bbc478f7f0b8deb5419eefbf2819c4031625a79 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Fri, 7 Jun 2019 02:07:49 +0000 Subject: [PATCH] Fix backup/restore --- src/Authenticator/application.py.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Authenticator/application.py.in b/src/Authenticator/application.py.in index e6f973a..b41044e 100644 --- a/src/Authenticator/application.py.in +++ b/src/Authenticator/application.py.in @@ -251,14 +251,16 @@ class Application(Gtk.Application): @staticmethod def _on_import_json(*_): - from Authenticator.models import BackupJSON, import_json + from Authenticator.models import BackupJSON + from Authenticator.widgets import import_json filename = import_json(Window.get_default()) if filename: BackupJSON.import_file(filename) @staticmethod def _on_export_json(*_): - from Authenticator.models import BackupJSON, export_json + from Authenticator.models import BackupJSON + from Authenticator.widgets import export_json filename = export_json(Window.get_default()) if filename: BackupJSON.export_file(filename) -- 2.22.0