Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
7e76b3cb by wurstsalat at 2024-08-08T22:41:07+02:00
cfix: SearchView: Don't hide username filter on reset

Hiding these widgets prevents set_context from working properly

- - - - -


1 changed file:

- gajim/gtk/search_view.py


Changes:

=====================================
gajim/gtk/search_view.py
=====================================
@@ -363,14 +363,14 @@ def set_context(self, account: str | None, jid: JID | 
None) -> None:
         self._account = account
         self._jid = jid
 
+        self._search_filters.set_context(account, jid)
+
         if self._account is None and self._jid is None:
             self._ui.calendar_button.set_sensitive(False)
             return
 
         self._ui.calendar_button.set_sensitive(True)
 
-        self._search_filters.set_context(account, jid)
-
 
 class RowHeader(Gtk.Box):
     def __init__(self, account: str, jid: JID, timestamp: dt.datetime) -> None:
@@ -577,8 +577,6 @@ def reset(self) -> None:
         self._ui.filter_before_label.set_text('-')
         self._ui.filter_after_label.set_text('-')
 
-        self._ui.filter_from_desc_label.hide()
-        self._ui.filter_from_entry.hide()
         self._ui.filter_from_entry.set_text('')
 
         self.set_label(_('Message Filters'))



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7e76b3cb512fd276adb7f79ae1c1256cba2242ca

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7e76b3cb512fd276adb7f79ae1c1256cba2242ca
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- commits@gajim.org
To unsubscribe send an email to commits-le...@gajim.org

Reply via email to