diff options
author | wurstsalat <mailtrash@posteo.de> | 2023-05-22 00:56:44 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2023-05-22 00:56:57 +0300 |
commit | a7c7b9d3cc7aa0c2218f049ff36d664bc3430370 (patch) | |
tree | b47ed923b3d2d16b9d5b26dc4ac9820f47ea4d13 | |
parent | 54e1e89eaafb8659e1965bf8f6756e0eb37f9129 (diff) |
cfix: XMLConsole: Set filtering attributes correctly
-rw-r--r-- | gajim/gtk/xml_console.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gajim/gtk/xml_console.py b/gajim/gtk/xml_console.py index 16806201b..6b10dc75e 100644 --- a/gajim/gtk/xml_console.py +++ b/gajim/gtk/xml_console.py @@ -462,7 +462,7 @@ class XMLConsoleWindow(Gtk.ApplicationWindow, EventHelper): tag.set_property('invisible', account != value) def _on_setting(self, value: bool, data: str) -> None: - setattr(self, data, value) + setattr(self, f'_{data}', value) value = not value table = self._ui.protocol_view.get_buffer().get_tag_table() tag = table.lookup(data) @@ -515,13 +515,13 @@ class XMLConsoleWindow(Gtk.ApplicationWindow, EventHelper): elif stanza.startswith('<r') or stanza.startswith('<a'): type_ = 'stream' - stanza = '<!-- {kind} {time} ({account}) -->\n{stanza}\n\n'.format( + text = '<!-- {kind} {time} ({account}) -->\n{stanza}\n\n'.format( kind=kind.capitalize(), time=time.strftime('%c'), account=account_label, stanza=stanza) buffer_.insert_with_tags_by_name( - end_iter, stanza, type_, kind, event.account) + end_iter, text, type_, kind, event.account) if is_at_the_end: GLib.idle_add(scroll_to_end, self._ui.scrolled) |