mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
night mode fix for find dupes screen
This commit is contained in:
parent
3425bee968
commit
1c677bb9d4
1 changed files with 3 additions and 3 deletions
|
@ -2161,6 +2161,7 @@ update cards set usn=?, mod=?, did=? where id in """
|
||||||
frm.webView.set_bridge_command(
|
frm.webView.set_bridge_command(
|
||||||
self.dupeLinkClicked, FindDupesDialog(dialog=d, browser=self)
|
self.dupeLinkClicked, FindDupesDialog(dialog=d, browser=self)
|
||||||
)
|
)
|
||||||
|
frm.webView.stdHtml("")
|
||||||
|
|
||||||
def onFin(code):
|
def onFin(code):
|
||||||
saveGeom(d, "findDupes")
|
saveGeom(d, "findDupes")
|
||||||
|
@ -2183,7 +2184,7 @@ update cards set usn=?, mod=?, did=? where id in """
|
||||||
_("Tag Duplicates"), QDialogButtonBox.ActionRole
|
_("Tag Duplicates"), QDialogButtonBox.ActionRole
|
||||||
)
|
)
|
||||||
b.clicked.connect(lambda: self._onTagDupes(res))
|
b.clicked.connect(lambda: self._onTagDupes(res))
|
||||||
t = "<html><body>"
|
t = ""
|
||||||
groups = len(res)
|
groups = len(res)
|
||||||
notes = sum(len(r[1]) for r in res)
|
notes = sum(len(r[1]) for r in res)
|
||||||
part1 = ngettext("%d group", "%d groups", groups) % groups
|
part1 = ngettext("%d group", "%d groups", groups) % groups
|
||||||
|
@ -2200,8 +2201,7 @@ update cards set usn=?, mod=?, did=? where id in """
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
t += "</ol>"
|
t += "</ol>"
|
||||||
t += "</body></html>"
|
web.stdHtml(t)
|
||||||
web.setHtml(t)
|
|
||||||
self.mw.progress.finish()
|
self.mw.progress.finish()
|
||||||
|
|
||||||
def _onTagDupes(self, res):
|
def _onTagDupes(self, res):
|
||||||
|
|
Loading…
Reference in a new issue