Example #1
0
    def on_done(future: Future) -> None:
        mw.progress.finish()

        try:
            future.result()
        except Exception as e:
            print(e)
            showWarning(tr.importing_the_provided_file_is_not_a())
            return

        if not mw.loadCollection():
            return
        if backup:
            mw.col.mod_schema(check=False)

        tooltip(tr.importing_importing_complete())
Example #2
0
 def on_done(success: bool) -> None:
     mw.loadCollection()
     if success:
         tooltip(tr.importing_importing_complete())