Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
start to tray updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Feb 2, 2019
1 parent 9795f02 commit 04e6fac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/electron/electronConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
2 changes: 1 addition & 1 deletion src/misc/sequentialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/misc/throttle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
export function throttle(limit: number, throttleKey: (args: any[]) => string) {
return <T>(target: any, propertyKey: string | symbol,
descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise<T>>) => {
descriptor: TypedPropertyDescriptor<(...args: any[]) => Promise<T>>) => {
const originalMethod: () => Promise<T> = descriptor.value;
const allThrottles = new Map<any, Map<string, Array<() => void>>>();

Expand All @@ -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);
Expand Down

0 comments on commit 04e6fac

Please sign in to comment.