From 2508eea8e6755a5bd4e4cc55328b1054fbbb6756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Fri, 19 Apr 2019 15:14:53 +0100 Subject: Refresh tab when information element is added or removed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- poezio/tabs/privatetab.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'poezio/tabs/privatetab.py') diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py index cec68ac5..a1b9a87a 100644 --- a/poezio/tabs/privatetab.py +++ b/poezio/tabs/privatetab.py @@ -94,6 +94,7 @@ class PrivateTab(OneToOneTab): super().ack_message(msg_id, msg_jid) @staticmethod + @refresh_wrapper.always def add_information_element(plugin_name, callback): """ Lets a plugin add its own information to the PrivateInfoWin @@ -101,6 +102,7 @@ class PrivateTab(OneToOneTab): PrivateTab.additional_information[plugin_name] = callback @staticmethod + @refresh_wrapper.always def remove_information_element(plugin_name): del PrivateTab.additional_information[plugin_name] -- cgit v1.2.3