[length-notifier] reset to default background color when we sent the message. Fixes #150

This commit is contained in:
Yann Leboulanger
2017-09-08 22:32:41 +02:00
parent bdf13ef7e8
commit 07a818901f

View File

@@ -72,6 +72,9 @@ class LengthNotifierPlugin(GajimPlugin):
tv.override_background_color(Gtk.StateFlags.NORMAL, tv.override_background_color(Gtk.StateFlags.NORMAL,
d['prev_color']) d['prev_color'])
d['prev_color'] = None 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') @log_calls('LengthNotifierPlugin')
def connect_with_chat_control(self, chat_control): def connect_with_chat_control(self, chat_control):