Skip to content

Commit

Permalink
renaming filter_ to filter_name
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesivsm committed Jan 9, 2021
1 parent e88bd8f commit 426687b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GTG/gtk/browser/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -1299,12 +1299,12 @@ def _reapply_filter(self, current_pane):
# allowing liblarch to trigger a refresh on last item. This way the
# refresh is never triggered more than once and we let the possibility
# to liblarch not to trigger refresh is filters did not change.
for filter_ in filters:
is_last = filter_ == filters[-1]
if filter_ == SEARCH_TAG:
for filter_name in filters:
is_last = filter_name == filters[-1]
if filter_name == SEARCH_TAG:
self._try_filter_by_query(search, refresh=is_last)
else:
vtree.apply_filter(filter_, refresh=is_last)
vtree.apply_filter(filter_name, refresh=is_last)

def on_select_tag(self, widget=None, row=None, col=None):
""" Callback for tag(s) selection from left sidebar.
Expand Down

0 comments on commit 426687b

Please sign in to comment.