Merge pull request #915 from RumovZ/fix-template-filter

Fix _template_filter and update want_release_gil()
This commit is contained in:
Damien Elmes 2021-01-11 16:20:50 +10:00 committed by GitHub
commit 7883ea0396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ fn want_release_gil(method: u32) -> bool {
| BackendMethod::NegateSearch | BackendMethod::NegateSearch
| BackendMethod::ConcatenateSearches | BackendMethod::ConcatenateSearches
| BackendMethod::ReplaceSearchTerm | BackendMethod::ReplaceSearchTerm
| BackendMethod::FilterToSearch
) )
} else { } else {
false false

View File

@ -1390,7 +1390,7 @@ QTableView {{ gridline-color: {grid} }}
num=c + 1, num=c + 1,
name=self._escapeMenuItem(tmpl["name"]), 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()) m.addChild(noteTypes.chunked())
return m return m