Compare commits
3 Commits
28063e3ac4
...
74583a6845
Author | SHA1 | Date |
---|---|---|
Alan Hamlett | 74583a6845 | |
Alan Hamlett | 31f1f8ecdc | |
Alan Hamlett | c1f58fd05d |
|
@ -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)
|
||||
++++++++++++++++++
|
||||
|
||||
|
|
11
WakaTime.py
11
WakaTime.py
|
@ -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')):
|
||||
|
|
Loading…
Reference in New Issue