INNER CODE UNIT · TypeScript

refreshDesktopMenu

BradGroux/veritas-kanban · desktop/src/main/index.ts:203

function refreshDesktopMenu(): void {
  if (!runtime || !commandDispatcher) {
    return;
  }

  const appInfo = createDesktopAppInfo(app.getVersion(), launchPackaged);
  configureDesktopMenu({
    status: runtime.snapshot(),
    updateStatus: updateService?.snapshot(),
    copyVersionInfo: () => clipboard.writeText(formatDesktopVersionInfo(appInfo)),
    openHelp: () => {
      void openValidatedExternalUrl(shell, DESKTOP_HELP_URL);
    },
    dispatch: (command) => {
      if (commandDispatcher) {
        dispatchDesktopMenuCommand(commandDispatcher, command);
      }
    },

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…