Don't show a timer on idle (#57)

Not needed anyways, and buggy to say the least.
This commit is contained in:
Frangu Vlad 2018-04-29 17:35:37 +03:00 committed by Crawl
parent 16ab8c85c5
commit 29ddf87284

View file

@ -239,7 +239,7 @@ function setActivity(workspaceElapsedTime: boolean = false): void {
activity = {
details: generateDetails('detailsDebugging', 'detailsEditing', 'detailsIdle'),
state: generateDetails('lowerDetailsDebugging', 'lowerDetailsEditing', 'lowerDetailsIdle'),
startTimestamp: previousTimestamp && workspaceElapsedTime ? previousTimestamp : new Date().getTime() / 1000,
startTimestamp: window.activeTextEditor && previousTimestamp && workspaceElapsedTime ? previousTimestamp : window.activeTextEditor ? new Date().getTime() / 1000 : null,
largeImageKey: largeImageKey
? largeImageKey.image
|| largeImageKey