mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
clearer options group warning (#661)
This commit is contained in:
parent
bbe248698a
commit
23b5cbd13a
2 changed files with 12 additions and 2 deletions
|
@ -91,8 +91,12 @@ class DeckConf(QDialog):
|
|||
continue
|
||||
if d['conf'] == conf['id']:
|
||||
cnt += 1
|
||||
self.form.count.setText(ngettext("%d deck uses this options group", \
|
||||
"%d decks use this options group", cnt) % cnt)
|
||||
if cnt > 1:
|
||||
txt = _("Your changes will affect multiple decks. If you wish to "
|
||||
"change only the current deck, please add a new options group first.")
|
||||
else:
|
||||
txt = ""
|
||||
self.form.count.setText(txt)
|
||||
|
||||
def addGroup(self):
|
||||
name = getOnlyText(_("New options group name:"))
|
||||
|
|
|
@ -57,12 +57,18 @@
|
|||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="count">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">* { color: red }</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
Loading…
Reference in a new issue