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