ability to disable status bar message

This commit is contained in:
Alan Hamlett 2015-03-22 17:13:32 -07:00
parent 17404bf848
commit cb2d126c47
2 changed files with 7 additions and 2 deletions

View File

@ -229,7 +229,8 @@ class SendActionThread(threading.Thread):
print('[WakaTime] Error: Unable to find python binary.')
def sent(self):
sublime.set_timeout(lambda: self.view.set_status('wakatime', 'WakaTime heartbeat sent {0}'.format(datetime.now().strftime('%A %b %d %Y at %I:%M %p %Z'))), 0)
if SETTINGS.get('status_bar_message'):
sublime.set_timeout(lambda: self.view.set_status('wakatime', 'WakaTime active {0}'.format(datetime.now().strftime('%I:%M %p'))), 0)
sublime.set_timeout(self.set_last_action, 0)
def set_last_action(self):

View File

@ -12,5 +12,9 @@
"ignore": ["^/tmp/", "^/etc/", "^/var/"],
// Debug mode. Set to true for verbose logging. Defaults to false.
"debug": false
"debug": false,
// Status bar message. Set to false to hide status bar message.
// Defaults to true.
"status_bar_message": true
}