From 04e6fac5e46b4ab1ab62592c6654396f384bdf76 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 2 Feb 2019 12:26:46 -0500 Subject: [PATCH] start to tray updates --- src/electron/electronConstants.ts | 2 +- src/misc/sequentialize.ts | 2 +- src/misc/throttle.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/electron/electronConstants.ts b/src/electron/electronConstants.ts index 431e9eaf0f..3226486d34 100644 --- a/src/electron/electronConstants.ts +++ b/src/electron/electronConstants.ts @@ -2,5 +2,5 @@ export class ElectronConstants { static readonly enableMinimizeToTrayKey: string = 'enableMinimizeToTray'; static readonly enableCloseToTrayKey: string = 'enableCloseToTray'; static readonly enableTrayKey: string = 'enableTray'; - static readonly enableStartMinimizedKey: string = 'enableStartMinimizedKey'; + static readonly enableStartToTrayKey: string = 'enableStartToTrayKey'; } diff --git a/src/misc/sequentialize.ts b/src/misc/sequentialize.ts index ab64074472..de223e2e25 100644 --- a/src/misc/sequentialize.ts +++ b/src/misc/sequentialize.ts @@ -24,7 +24,7 @@ export function sequentialize(cacheKey: (args: any[]) => string) { }; return { - value: function(...args: any[]) { + value: function (...args: any[]) { const cache = getCache(this); const argsCacheKey = cacheKey(args); let response = cache.get(argsCacheKey); diff --git a/src/misc/throttle.ts b/src/misc/throttle.ts index 48f3b879ab..d4fc553f06 100644 --- a/src/misc/throttle.ts +++ b/src/misc/throttle.ts @@ -6,7 +6,7 @@ */ export function throttle(limit: number, throttleKey: (args: any[]) => string) { return (target: any, propertyKey: string | symbol, - descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise>) => { + descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise>) => { const originalMethod: () => Promise = descriptor.value; const allThrottles = new Map void>>>(); @@ -21,7 +21,7 @@ export function throttle(limit: number, throttleKey: (args: any[]) => string) { }; return { - value: function(...args: any[]) { + value: function (...args: any[]) { const throttles = getThrottles(this); const argsThrottleKey = throttleKey(args); let queue = throttles.get(argsThrottleKey);