mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
don't add separator if no tags available
This commit is contained in:
parent
a36738c8ce
commit
41b98051b8
1 changed files with 3 additions and 2 deletions
|
@ -395,8 +395,9 @@ class EditDeck(QMainWindow):
|
||||||
for t in sortedtags:
|
for t in sortedtags:
|
||||||
self.dialog.tagList.addItem(icon, t.replace("_", " "))
|
self.dialog.tagList.addItem(icon, t.replace("_", " "))
|
||||||
alltags.append(None)
|
alltags.append(None)
|
||||||
self.dialog.tagList.insertSeparator(
|
if sortedtags:
|
||||||
self.dialog.tagList.count())
|
self.dialog.tagList.insertSeparator(
|
||||||
|
self.dialog.tagList.count())
|
||||||
# fact tags
|
# fact tags
|
||||||
alluser = sorted(self.deck.allTags())
|
alluser = sorted(self.deck.allTags())
|
||||||
for tag in alltags:
|
for tag in alltags:
|
||||||
|
|
Loading…
Reference in a new issue