mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
don't mark first field red unless it's a dupe
This commit is contained in:
parent
33066d538c
commit
be597905fc
1 changed files with 2 additions and 3 deletions
|
|
@ -435,13 +435,12 @@ class Editor(object):
|
|||
for f in self.note.fields:
|
||||
cols.append("#fff")
|
||||
err = self.note.dupeOrEmpty()
|
||||
if err:
|
||||
cols[0] = "#fcc"
|
||||
self.web.eval("setBackgrounds(%s);" % simplejson.dumps(cols))
|
||||
if err == 2:
|
||||
cols[0] = "#fcc"
|
||||
self.web.eval("showDupes();")
|
||||
else:
|
||||
self.web.eval("hideDupes();")
|
||||
self.web.eval("setBackgrounds(%s);" % simplejson.dumps(cols))
|
||||
|
||||
def showDupes(self):
|
||||
contents = self.note.fields[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue