Commit 9bbc478f authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Fix backup/restore

parent 476a9a9f
Pipeline #86833 passed with stages
in 7 minutes and 20 seconds
...@@ -251,14 +251,16 @@ class Application(Gtk.Application): ...@@ -251,14 +251,16 @@ class Application(Gtk.Application):
@staticmethod @staticmethod
def _on_import_json(*_): 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()) filename = import_json(Window.get_default())
if filename: if filename:
BackupJSON.import_file(filename) BackupJSON.import_file(filename)
@staticmethod @staticmethod
def _on_export_json(*_): 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()) filename = export_json(Window.get_default())
if filename: if filename:
BackupJSON.export_file(filename) BackupJSON.export_file(filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment