mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Keep an window open showing the migration is in progress
This commit is contained in:
parent
453da45c99
commit
9f5c69ee94
1 changed files with 22 additions and 0 deletions
|
@ -144,7 +144,29 @@ class ProfileManager:
|
||||||
retval = conformation.exec()
|
retval = conformation.exec()
|
||||||
|
|
||||||
if retval == QMessageBox.Ok:
|
if retval == QMessageBox.Ok:
|
||||||
|
progress = QMessageBox()
|
||||||
|
progress.setIcon(QMessageBox.Information)
|
||||||
|
progress.setStandardButtons(QMessageBox.NoButton)
|
||||||
|
progress.setWindowIcon(icon)
|
||||||
|
progress.setWindowTitle(window_title)
|
||||||
|
progress.setText(
|
||||||
|
f"Please wait while your Anki collection is moved from {migration_directories}"
|
||||||
|
)
|
||||||
|
progress.show()
|
||||||
|
app.processEvents()
|
||||||
shutil.move(oldBase, self.base)
|
shutil.move(oldBase, self.base)
|
||||||
|
progress.hide()
|
||||||
|
|
||||||
|
completion = QMessageBox()
|
||||||
|
completion.setIcon(QMessageBox.Information)
|
||||||
|
completion.setStandardButtons(QMessageBox.Ok)
|
||||||
|
completion.setWindowIcon(icon)
|
||||||
|
completion.setWindowTitle(window_title)
|
||||||
|
completion.setText(
|
||||||
|
f"Your Anki Collection was successfully moved from {migration_directories}"
|
||||||
|
)
|
||||||
|
completion.show()
|
||||||
|
completion.exec()
|
||||||
else:
|
else:
|
||||||
self.base = oldBase
|
self.base = oldBase
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue