Skip to main content

setMainWindow

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / main/state/appState / setMainWindow

Function: setMainWindow()

setMainWindow(mainWindow: MainAppStateWindowLike | null, options?: StateUpdateOptions): void

Defined in: main/state/appState.ts:244

Sets or clears the BrowserWindow tracked by the main process.

Parameters​

mainWindow​

MainAppStateWindowLike | null

Current main window, or null when no window is active.

options?​

StateUpdateOptions

Additional metadata forwarded to the state manager.

Returns​

void