Commit 614edb2b authored by Alexander's avatar Alexander

[stickers] Fix search not resetting

When clearing a search, the sticker pack "sub searches" would not
be cleared.
parent 344bd6e3
Pipeline #6899 passed with stage
in 1 minute and 45 seconds
...@@ -796,11 +796,12 @@ class StickersButton(Gtk.Button): ...@@ -796,11 +796,12 @@ class StickersButton(Gtk.Button):
def _listbox_filter_func(self, row, *user_data): def _listbox_filter_func(self, row, *user_data):
# We don't need it, but it's there # We don't need it, but it's there
# pylint: disable=unused-argument # pylint: disable=unused-argument
grid = row.get_children()[0]
if not self._query: if not self._query:
grid.get_child_at(0, 1).invalidate_filter()
return True return True
if any([x.startswith(self._query) for x in row.stickers_strings]): if any([x.startswith(self._query) for x in row.stickers_strings]):
grid = row.get_children()[0]
grid.get_child_at(0, 1).invalidate_filter() grid.get_child_at(0, 1).invalidate_filter()
return True return True
return False return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment