mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
Merge pull request #915 from RumovZ/fix-template-filter
Fix _template_filter and update want_release_gil()
This commit is contained in:
commit
7883ea0396
2 changed files with 2 additions and 1 deletions
|
@ -57,6 +57,7 @@ fn want_release_gil(method: u32) -> bool {
|
|||
| BackendMethod::NegateSearch
|
||||
| BackendMethod::ConcatenateSearches
|
||||
| BackendMethod::ReplaceSearchTerm
|
||||
| BackendMethod::FilterToSearch
|
||||
)
|
||||
} else {
|
||||
false
|
||||
|
|
|
@ -1390,7 +1390,7 @@ QTableView {{ gridline-color: {grid} }}
|
|||
num=c + 1,
|
||||
name=self._escapeMenuItem(tmpl["name"]),
|
||||
)
|
||||
subm.addItem(name, self._template_filter(nt["name"], c + 1))
|
||||
subm.addItem(name, self._template_filter(nt["name"], c))
|
||||
|
||||
m.addChild(noteTypes.chunked())
|
||||
return m
|
||||
|
|
Loading…
Reference in a new issue