From 7a2161b7dd8058c38f801eda7bea3e575d51e169 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sun, 25 Aug 2013 16:54:48 -0700 Subject: [PATCH] v1.3.2 fix bug where LAST_FILE not correct value --- WakaTime.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/WakaTime.py b/WakaTime.py index f3417fb..4c32bc7 100644 --- a/WakaTime.py +++ b/WakaTime.py @@ -5,7 +5,7 @@ Maintainer: WakaTi.me Website: https://www.wakati.me/ ===========================================================""" -__version__ = '1.3.0' +__version__ = '1.3.2' import sublime import sublime_plugin @@ -135,11 +135,12 @@ class SendActionThread(threading.Thread): self.force = force self.debug = SETTINGS.get('debug') self.api_key = SETTINGS.get('api_key', '') + self.last_file = LAST_FILE def run(self): if self.targetFile: self.timestamp = time.time() - if self.force or self.isWrite or self.targetFile != LAST_FILE or enough_time_passed(self.timestamp): + if self.force or self.isWrite or self.targetFile != self.last_file or enough_time_passed(self.timestamp): self.send() def send(self):