super-productivity/electron/shared-state.ts
2025-10-23 15:12:12 +02:00

19 lines
435 B
TypeScript

/**
* Shared state module for Electron main process
* Provides a single source of truth for application-wide flags
*/
let isQuiting = false;
let isLocked = false;
export const getIsQuiting = (): boolean => isQuiting;
export const setIsQuiting = (value: boolean): void => {
isQuiting = value;
};
export const getIsLocked = (): boolean => isLocked;
export const setIsLocked = (value: boolean): void => {
isLocked = value;
};