Compare commits

...

3 Commits

Author SHA1 Message Date
Alan Hamlett 74583a6845 v11.0.7 2022-06-25 13:46:38 -03:00
Alan Hamlett 31f1f8ecdc changes for v11.0.7 2022-06-25 13:46:25 -03:00
Alan Hamlett c1f58fd05d check wakatime-cli versions in background thread to prevent blocking UI 2022-06-25 13:45:29 -03:00
2 changed files with 13 additions and 5 deletions

View File

@ -3,6 +3,13 @@ History
-------
11.0.7 (2022-06-25)
++++++++++++++++++
- Check wakatime-cli versions in background thread.
`#115 <https://github.com/wakatime/sublime-wakatime/issues/115>`_
11.0.6 (2022-06-08)
++++++++++++++++++

View File

@ -8,7 +8,7 @@ Website: https://wakatime.com/
==========================================================="""
__version__ = '11.0.6'
__version__ = '11.0.7'
import sublime
@ -594,9 +594,7 @@ def plugin_loaded():
log(INFO, 'Initializing WakaTime plugin v%s' % __version__)
update_status_bar('Initializing...')
if not isCliLatest():
thread = DownloadCLI()
thread.start()
UpdateCLI().start()
after_loaded()
@ -632,11 +630,14 @@ class WakatimeDashboardCommand(sublime_plugin.ApplicationCommand):
webbrowser.open_new_tab('https://wakatime.com/dashboard')
class DownloadCLI(threading.Thread):
class UpdateCLI(threading.Thread):
"""Non-blocking thread for downloading latest wakatime-cli from GitHub.
"""
def run(self):
if isCliLatest():
return
log(INFO, 'Downloading wakatime-cli...')
if os.path.isdir(os.path.join(RESOURCES_FOLDER, 'wakatime-cli')):