1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

feat: Add checkbox validation to active or deactive plugin.

This commit is contained in:
Luis Reinoso
2020-05-16 11:13:19 -05:00
parent fd3e243855
commit 6fe6794796
2 changed files with 60 additions and 31 deletions

View File

@@ -11,7 +11,11 @@ function sendWakatimeHeartBeat(
hasFileChanges,
isFileChange
) {
if (new Date().getTime() - lastHeartbeat > 120000 || isFileChange) {
if (
config.get().wakatime.isActive &&
!!config.get().wakatime.key &&
(new Date().getTime() - lastHeartbeat > 120000 || isFileChange)
) {
const notePath = path.join(storagePath, 'notes', noteKey + '.cson')
if (!isWrite && !hasFileChanges && !isFileChange) {