night mode fix for find dupes screen

This commit is contained in:
Damien Elmes 2020-02-12 08:28:33 +10:00
parent 3425bee968
commit 1c677bb9d4

View file

@ -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):