Philipp Hörist pushed to branch master at gajim / gajim
Commits:
ec0f3934 by Philipp Hörist at 2025-06-28T10:27:24+02:00
cfix: AppSideBar: Show unread counter
- - - - -
2 changed files:
- gajim/gtk/main.py
- gajim/gtk/sidebar_listbox.py
Changes:
=====================================
gajim/gtk/main.py
=====================================
@@ -111,6 +111,7 @@ def __init__(self) -> None:
self._emoji_chooser: EmojiChooser | None = None
self._chat_page = self._main_stack.get_chat_page()
+ self._app_side_bar.set_chat_page(self._chat_page)
self.connect("notify::is-active", self._on_window_active)
self.connect("close-request", self._on_close_request)
=====================================
gajim/gtk/sidebar_listbox.py
=====================================
@@ -122,8 +122,8 @@ def _on_notify(obj_: GObject.Object, _param:
GObject.ParamSpec) -> None:
self._connect(obj, "notify::unread-count", _on_notify)
def set_unread_count(self, count: int) -> None:
+ self._label.set_visible(count != 0)
if count == 0:
- self._label.set_visible(False)
return
if count < 1000:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ec0f3934d98513e3849a8b6952f1678e0b3c112a
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/ec0f3934d98513e3849a8b6952f1678e0b3c112a
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]