Module: helpers/utils/create-window
Table of contents
Functions
Functions
createWindow
▸ createWindow(windowName, options): Promise<BrowserWindow>
Creates a new Electron BrowserWindow with specified options.
Manages window state using electron-store to remember its size and position.
Sets up IPC handler for opening directory dialogs.
Parameters
| Name | Type | Description |
|---|---|---|
windowName | string | The name of the window, used for state persistence. |
options | BrowserWindowConstructorOptions | Options for the BrowserWindow. |
Returns
Promise<BrowserWindow>
A promise that resolves to the created BrowserWindow instance.
Defined in
src/electron/helpers/utils/create-window.ts:22 (opens in a new tab)