mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Added file counts when deleting media
This commit is contained in:
parent
2e7b756000
commit
d669659e88
1 changed files with 3 additions and 3 deletions
|
@ -1107,7 +1107,7 @@ will be lost. Continue?"""))
|
||||||
if report:
|
if report:
|
||||||
report += "\n\n\n"
|
report += "\n\n\n"
|
||||||
report += _(
|
report += _(
|
||||||
"In media folder but not used by any cards:")
|
str(len(unused)) + " files found in media folder not used by any cards:")
|
||||||
report += "\n" + "\n".join(unused)
|
report += "\n" + "\n".join(unused)
|
||||||
if nohave:
|
if nohave:
|
||||||
if report:
|
if report:
|
||||||
|
@ -1159,11 +1159,11 @@ will be lost. Continue?"""))
|
||||||
now = time.time()
|
now = time.time()
|
||||||
if now - lastProgress >= 0.3:
|
if now - lastProgress >= 0.3:
|
||||||
lastProgress = now
|
lastProgress = now
|
||||||
label = _("Deleted %s files...") % (c+1)
|
label = _("%d files remaining...") % (len(unused) - (c+1))
|
||||||
self.progress.update(label)
|
self.progress.update(label)
|
||||||
finally:
|
finally:
|
||||||
self.progress.finish()
|
self.progress.finish()
|
||||||
tooltip(_("Deleted."))
|
tooltip(_("Deleted %d files.") % c)
|
||||||
diag.close()
|
diag.close()
|
||||||
|
|
||||||
def onStudyDeck(self):
|
def onStudyDeck(self):
|
||||||
|
|
Loading…
Reference in a new issue