From 8b7fe560b7156bcf7cb9542247aa371c31e72a35 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Fri, 3 Jun 2016 21:56:59 +0300 Subject: [PATCH] mrq bug fixes --- MarqueeStatus/mrq.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MarqueeStatus/mrq.py b/MarqueeStatus/mrq.py index 1876e53..e164299 100644 --- a/MarqueeStatus/mrq.py +++ b/MarqueeStatus/mrq.py @@ -31,7 +31,7 @@ class MarqueeStatus(plugin_super_class.PluginSuperClass): def __init__(self, *args): super(MarqueeStatus, self).__init__('MarqueeStatus', 'mrq', *args) - self._thread = threading.Thread(target=self.change_status) + self._thread = None self._exec = None self.active = False @@ -45,10 +45,12 @@ class MarqueeStatus(plugin_super_class.PluginSuperClass): def start(self): self._exec = True + self._thread = threading.Thread(target=self.change_status) self._thread.start() def set_status_message(self): - self._profile.status_message = self._profile.status_message[1:] + self._profile.status_message[0] + message = self._profile.status_message + self._profile.set_status_message(message[1:] + message[0]) def init_status(self): self._profile.status_message = self._profile.status_message.strip() + ' '