mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Merge pull request #421 from ErezVolk/tag-changed-grooming
Tag modified grooming
This commit is contained in:
commit
967b8a038d
5 changed files with 26 additions and 11 deletions
10
.github/scripts/contrib.sh
vendored
10
.github/scripts/contrib.sh
vendored
|
@ -2,5 +2,13 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
echo "All contributors:"
|
||||||
|
git log --pretty=format:' - %ae' CONTRIBUTORS |sort |uniq |sort -f
|
||||||
|
|
||||||
headAuthor=$(git log -1 --pretty=format:'%ae')
|
headAuthor=$(git log -1 --pretty=format:'%ae')
|
||||||
git log --pretty=format:'%ae' CONTRIBUTORS | grep -q "$headAuthor"
|
if git log --pretty=format:'%ae' CONTRIBUTORS | grep -q "$headAuthor"; then
|
||||||
|
echo "Author $headAuthor found in CONTRIBUTORS"
|
||||||
|
else
|
||||||
|
echo "Author $headAuthor NOT found in list"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
|
@ -18,9 +18,9 @@ support site, it would be great if you could add your name below as well.
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
Erez Volk <erez.volk@gmail.com>
|
|
||||||
Aristotelis P. <https://glutanimate.com/contact>
|
|
||||||
AMBOSS MD Inc. <https://www.amboss.com/>
|
AMBOSS MD Inc. <https://www.amboss.com/>
|
||||||
|
Aristotelis P. <https://glutanimate.com/contact>
|
||||||
|
Erez Volk <erez.volk@gmail.com>
|
||||||
zjosua <zjosua@hotmail.com>
|
zjosua <zjosua@hotmail.com>
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
|
@ -150,6 +150,7 @@ system. It's free and open source."
|
||||||
"Arthur Milchior",
|
"Arthur Milchior",
|
||||||
"Rai (Michael Pokorny)",
|
"Rai (Michael Pokorny)",
|
||||||
"AMBOSS MD Inc.",
|
"AMBOSS MD Inc.",
|
||||||
|
"Erez Volk",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -92,6 +92,8 @@ class ImportDialog(QDialog):
|
||||||
self.frm.allowHTML.setChecked(self.mw.pm.profile.get("allowHTML", True))
|
self.frm.allowHTML.setChecked(self.mw.pm.profile.get("allowHTML", True))
|
||||||
self.frm.importMode.currentIndexChanged.connect(self.importModeChanged)
|
self.frm.importMode.currentIndexChanged.connect(self.importModeChanged)
|
||||||
self.frm.importMode.setCurrentIndex(self.mw.pm.profile.get("importMode", 1))
|
self.frm.importMode.setCurrentIndex(self.mw.pm.profile.get("importMode", 1))
|
||||||
|
self.frm.tagModified.setText(self.mw.pm.profile.get("tagModified", ""))
|
||||||
|
self.frm.tagModified.setCol(self.mw.col)
|
||||||
# import button
|
# import button
|
||||||
b = QPushButton(_("Import"))
|
b = QPushButton(_("Import"))
|
||||||
self.frm.buttonBox.addButton(b, QDialogButtonBox.AcceptRole)
|
self.frm.buttonBox.addButton(b, QDialogButtonBox.AcceptRole)
|
||||||
|
@ -179,8 +181,7 @@ you can enter it here. Use \\t to represent tab."""
|
||||||
self.mw.pm.profile["importMode"] = self.importer.importMode
|
self.mw.pm.profile["importMode"] = self.importer.importMode
|
||||||
self.importer.allowHTML = self.frm.allowHTML.isChecked()
|
self.importer.allowHTML = self.frm.allowHTML.isChecked()
|
||||||
self.mw.pm.profile["allowHTML"] = self.importer.allowHTML
|
self.mw.pm.profile["allowHTML"] = self.importer.allowHTML
|
||||||
if self.frm.tagModifiedCheck.isChecked():
|
self.importer.tagModified = self.frm.tagModified.text()
|
||||||
self.importer.tagModified = self.frm.tagModifiedTag.text()
|
|
||||||
self.mw.pm.profile["tagModified"] = self.importer.tagModified
|
self.mw.pm.profile["tagModified"] = self.importer.tagModified
|
||||||
did = self.deck.selectedId()
|
did = self.deck.selectedId()
|
||||||
if did != self.importer.model["did"]:
|
if did != self.importer.model["did"]:
|
||||||
|
@ -288,11 +289,9 @@ you can enter it here. Use \\t to represent tab."""
|
||||||
|
|
||||||
def importModeChanged(self, newImportMode):
|
def importModeChanged(self, newImportMode):
|
||||||
if newImportMode == 0:
|
if newImportMode == 0:
|
||||||
allowTagModified = True
|
self.frm.tagModified.setEnabled(True)
|
||||||
else:
|
else:
|
||||||
allowTagModified = False
|
self.frm.tagModified.setEnabled(False)
|
||||||
self.frm.tagModifiedCheck.setEnabled(allowTagModified)
|
|
||||||
self.frm.tagModifiedTag.setEnabled(allowTagModified)
|
|
||||||
|
|
||||||
|
|
||||||
def showUnicodeWarning():
|
def showUnicodeWarning():
|
||||||
|
|
|
@ -80,14 +80,14 @@
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="tagModifiedLayout">
|
<layout class="QHBoxLayout" name="tagModifiedLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="tagModifiedCheck">
|
<widget class="QLabel" name="tagModifiedLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Tag modified notes:</string>
|
<string>Tag modified notes:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="tagModifiedTag"/>
|
<widget class="TagEdit" name="tagModified"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
@ -157,6 +157,13 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>TagEdit</class>
|
||||||
|
<extends>QLineEdit</extends>
|
||||||
|
<header>aqt/tagedit.h</header>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>buttonBox</tabstop>
|
<tabstop>buttonBox</tabstop>
|
||||||
</tabstops>
|
</tabstops>
|
||||||
|
|
Loading…
Reference in a new issue