Skip to content

Commit

Permalink
Merge pull request #1231 from RumovZ/fix-filtered-deck
Browse files Browse the repository at this point in the history
Fix filtered deck from browser
  • Loading branch information
dae committed Jun 14, 2021
2 parents 621684a + 46d226c commit a4dc8a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pylib/anki/utils.py
Expand Up @@ -387,11 +387,11 @@ def legacy_func(sub: Optional[str] = None) -> Callable:
else:
hint = ""

def decorater(func: Callable) -> Callable:
def decorator(func: Callable) -> Callable:
def decorated_func(*args: Any, **kwargs: Any) -> Any:
print(f"'{func.__name__}' is deprecated{hint}.")
return func(*args, **kwargs)

return decorated_func

return decorater
return decorator
3 changes: 2 additions & 1 deletion qt/aqt/filtered_deck.py
Expand Up @@ -111,7 +111,6 @@ def _load_deck(self) -> None:

self.form.name.setText(deck.name)
self.form.name.setPlaceholderText(deck.name)
self.set_custom_searches(self._desired_search_1, self._desired_search_2)

existing = deck.id != 0
if existing:
Expand Down Expand Up @@ -152,6 +151,8 @@ def _load_deck(self) -> None:
form.secondFilter.setChecked(show_second)
form.filter2group.setVisible(show_second)

self.set_custom_searches(self._desired_search_1, self._desired_search_2)

self.setWindowTitle(
without_unicode_isolation(tr.actions_options_for(val=self.deck.name))
)
Expand Down

0 comments on commit a4dc8a0

Please sign in to comment.