mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
improve check media db warning
This commit is contained in:
parent
75af04b383
commit
7a43754d74
1 changed files with 11 additions and 4 deletions
|
@ -1713,12 +1713,19 @@ the same field count and card count.""") % ret[1])
|
||||||
|
|
||||||
def onCheckMediaDB(self):
|
def onCheckMediaDB(self):
|
||||||
mb = QMessageBox(self)
|
mb = QMessageBox(self)
|
||||||
|
mb.setWindowTitle(_("Anki"))
|
||||||
|
mb.setIcon(QMessageBox.Warning)
|
||||||
mb.setText(_("""\
|
mb.setText(_("""\
|
||||||
Would you like to remove unused files from the media directory, and
|
This operation:<br>
|
||||||
tag or delete references to missing files?"""))
|
- <b>deletes files</b> not referenced by cards<br>
|
||||||
bTag = QPushButton("Tag")
|
- either tags cards, or deletes references to missing files<br>
|
||||||
|
- renames files to a string of numbers and letters<br>
|
||||||
|
- updates checksums for files which have been changed<br>
|
||||||
|
<br>
|
||||||
|
If in doubt, backup your media directory first."""))
|
||||||
|
bTag = QPushButton("Tag Cards")
|
||||||
mb.addButton(bTag, QMessageBox.RejectRole)
|
mb.addButton(bTag, QMessageBox.RejectRole)
|
||||||
bDelete = QPushButton("Delete")
|
bDelete = QPushButton("Delete Refs")
|
||||||
mb.addButton(bDelete, QMessageBox.RejectRole)
|
mb.addButton(bDelete, QMessageBox.RejectRole)
|
||||||
bCancel = QPushButton("Cancel")
|
bCancel = QPushButton("Cancel")
|
||||||
mb.addButton(bCancel, QMessageBox.RejectRole)
|
mb.addButton(bCancel, QMessageBox.RejectRole)
|
||||||
|
|
Loading…
Reference in a new issue