diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2019-04-19 15:14:53 +0100 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2019-04-19 15:14:53 +0100 |
commit | 2508eea8e6755a5bd4e4cc55328b1054fbbb6756 (patch) | |
tree | ad0251bbae8b2ca7a5d90c4b1409735abfeefa6b /poezio/tabs/conversationtab.py | |
parent | e2981f3377703155361b084eaf3ec10213363704 (diff) | |
download | poezio-2508eea8e6755a5bd4e4cc55328b1054fbbb6756.tar.gz poezio-2508eea8e6755a5bd4e4cc55328b1054fbbb6756.tar.bz2 poezio-2508eea8e6755a5bd4e4cc55328b1054fbbb6756.tar.xz poezio-2508eea8e6755a5bd4e4cc55328b1054fbbb6756.zip |
Refresh tab when information element is added or removed
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'poezio/tabs/conversationtab.py')
-rw-r--r-- | poezio/tabs/conversationtab.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index d1ad608c..6ce5c72c 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -89,6 +89,7 @@ class ConversationTab(OneToOneTab): raise NotImplementedError @staticmethod + @refresh_wrapper.always def add_information_element(plugin_name, callback): """ Lets a plugin add its own information to the ConversationInfoWin @@ -96,6 +97,7 @@ class ConversationTab(OneToOneTab): ConversationTab.additional_information[plugin_name] = callback @staticmethod + @refresh_wrapper.always def remove_information_element(plugin_name): del ConversationTab.additional_information[plugin_name] |