v1.3.2 fix bug where LAST_FILE not correct value
This commit is contained in:
parent
9b817bc11a
commit
7a2161b7dd
1 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@ Maintainer: WakaTi.me <support@wakatime.com>
|
||||||
Website: https://www.wakati.me/
|
Website: https://www.wakati.me/
|
||||||
==========================================================="""
|
==========================================================="""
|
||||||
|
|
||||||
__version__ = '1.3.0'
|
__version__ = '1.3.2'
|
||||||
|
|
||||||
import sublime
|
import sublime
|
||||||
import sublime_plugin
|
import sublime_plugin
|
||||||
|
@ -135,11 +135,12 @@ class SendActionThread(threading.Thread):
|
||||||
self.force = force
|
self.force = force
|
||||||
self.debug = SETTINGS.get('debug')
|
self.debug = SETTINGS.get('debug')
|
||||||
self.api_key = SETTINGS.get('api_key', '')
|
self.api_key = SETTINGS.get('api_key', '')
|
||||||
|
self.last_file = LAST_FILE
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
if self.targetFile:
|
if self.targetFile:
|
||||||
self.timestamp = time.time()
|
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()
|
self.send()
|
||||||
|
|
||||||
def send(self):
|
def send(self):
|
||||||
|
|
Loading…
Reference in a new issue