mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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
|
continue
|
||||||
if d['conf'] == conf['id']:
|
if d['conf'] == conf['id']:
|
||||||
cnt += 1
|
cnt += 1
|
||||||
self.form.count.setText(ngettext("%d deck uses this options group", \
|
if cnt > 1:
|
||||||
"%d decks use this options group", cnt) % cnt)
|
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):
|
def addGroup(self):
|
||||||
name = getOnlyText(_("New options group name:"))
|
name = getOnlyText(_("New options group name:"))
|
||||||
|
|
|
@ -57,12 +57,18 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="count">
|
<widget class="QLabel" name="count">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">* { color: red }</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignCenter</set>
|
<set>Qt::AlignCenter</set>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
|
|
Loading…
Reference in a new issue