Skip to main content

createAppMenu

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/app/menu / createAppMenu

Variable: createAppMenu()

const createAppMenu: (mainWindow: BrowserWindow, currentTheme?: string, loadedFitFilePath?: string | null) => void

Defined in: utils/app/menu/index.js:13

Builds and sets the application menu for the Electron app. The menu includes File, Edit, View, Window, and Settings menus, with support for opening files, displaying a list of recent files, and standard menu roles.

Parameters​

mainWindow​

BrowserWindow

The main application window to which menu actions are dispatched.

currentTheme?​

string

The current theme of the application, used to set the checked state of theme radio buttons.

loadedFitFilePath?​

The path of the loaded FIT file, used to enable/disable the Summary Columns menu item.

string | null

Returns​

void