mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-26 07:45:34 +00:00
27 lines
806 B
TypeScript
27 lines
806 B
TypeScript
import type { BrowserWindow, Menu, NativeImage, Notification, Tray } from "electron";
|
|
|
|
export const mainRuntimeState: {
|
|
mainWindow: BrowserWindow | null;
|
|
sourceSelectorWindow: BrowserWindow | null;
|
|
tray: Tray | null;
|
|
trayContextMenu: Menu | null;
|
|
selectedSourceName: string;
|
|
editorHasUnsavedChanges: boolean;
|
|
isForceClosing: boolean;
|
|
activeUpdateNotification: Notification | null;
|
|
activeUpdateNotificationKey: string | null;
|
|
defaultTrayIcon: NativeImage | null;
|
|
recordingTrayIcon: NativeImage | null;
|
|
} = {
|
|
mainWindow: null,
|
|
sourceSelectorWindow: null,
|
|
tray: null,
|
|
trayContextMenu: null,
|
|
selectedSourceName: "",
|
|
editorHasUnsavedChanges: false,
|
|
isForceClosing: false,
|
|
activeUpdateNotification: null,
|
|
activeUpdateNotificationKey: null,
|
|
defaultTrayIcon: null,
|
|
recordingTrayIcon: null,
|
|
}; |