Retain the devtools option for perhaps another build to help in extreme cases
This commit is contained in:
parent
8a8d29e6b9
commit
0af7d2c13e
1 changed files with 0 additions and 8 deletions
|
@ -10,7 +10,6 @@ import { forceCheckForAppUpdates } from "./services/app-update";
|
|||
import autoLauncher from "./services/auto-launcher";
|
||||
import { openLogDirectory } from "./services/dir";
|
||||
import { userPreferences } from "./stores/user-preferences";
|
||||
// import { isDev } from "./utils/electron";
|
||||
|
||||
/** Create and return the entries in the app's main menu bar */
|
||||
export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
|
||||
|
@ -24,11 +23,6 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
|
|||
const macOSOnly = (options: MenuItemConstructorOptions[]) =>
|
||||
process.platform == "darwin" ? options : [];
|
||||
|
||||
// TODO(MR): Desktop-release
|
||||
// const devOnly = (options: MenuItemConstructorOptions[]) =>
|
||||
// // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
// isDev ?? true ? options : [];
|
||||
|
||||
const handleCheckForUpdates = () => forceCheckForAppUpdates(mainWindow);
|
||||
|
||||
const handleViewChangelog = () =>
|
||||
|
@ -147,9 +141,7 @@ export const createApplicationMenu = async (mainWindow: BrowserWindow) => {
|
|||
label: "View",
|
||||
submenu: [
|
||||
{ label: "Reload", role: "reload" },
|
||||
// ...devOnly([
|
||||
{ label: "Toggle Dev Tools", role: "toggleDevTools" },
|
||||
// ]),
|
||||
{ type: "separator" },
|
||||
{ label: "Toggle Full Screen", role: "togglefullscreen" },
|
||||
],
|
||||
|
|
Loading…
Add table
Reference in a new issue