From 07a818901f7596bdbe1b0c3ac6c069f8fb6bfb64 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 8 Sep 2017 22:32:41 +0200 Subject: [PATCH] [length-notifier] reset to default background color when we sent the message. Fixes #150 --- length_notifier/length_notifier.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/length_notifier/length_notifier.py b/length_notifier/length_notifier.py index 7dd3a25..135b007 100644 --- a/length_notifier/length_notifier.py +++ b/length_notifier/length_notifier.py @@ -72,6 +72,9 @@ class LengthNotifierPlugin(GajimPlugin): tv.override_background_color(Gtk.StateFlags.NORMAL, d['prev_color']) d['prev_color'] = None + elif d['prev_color']: + tv.override_background_color(Gtk.StateFlags.NORMAL, d['prev_color']) + d['prev_color'] = None @log_calls('LengthNotifierPlugin') def connect_with_chat_control(self, chat_control):