From 89717d25f80f42147384a56fc76533581c9d6151 Mon Sep 17 00:00:00 2001 From: Yoyo San Date: Thu, 2 Apr 2020 19:30:55 +0300 Subject: [PATCH] Adjust main window settings. --- src-electron/main-process/electron-main-menu-template.js | 5 ++--- src-electron/main-process/electron-main.js | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src-electron/main-process/electron-main-menu-template.js b/src-electron/main-process/electron-main-menu-template.js index e3eb00e..a5a8693 100644 --- a/src-electron/main-process/electron-main-menu-template.js +++ b/src-electron/main-process/electron-main-menu-template.js @@ -68,7 +68,6 @@ export const menuTemplate = [ submenu: [ { role: 'reload' }, { role: 'forcereload' }, - { role: 'toggledevtools' }, { type: 'separator' }, { role: 'resetzoom' }, { role: 'zoomin' }, @@ -97,10 +96,10 @@ export const menuTemplate = [ role: 'help', submenu: [ { - label: 'Learn More', + label: 'About', click: async () => { const { shell } = require('electron') - await shell.openExternal('https://electronjs.org') + await shell.openExternal('https://mpalade.ro') } } ] diff --git a/src-electron/main-process/electron-main.js b/src-electron/main-process/electron-main.js index fdbdd6c..47423af 100644 --- a/src-electron/main-process/electron-main.js +++ b/src-electron/main-process/electron-main.js @@ -31,8 +31,11 @@ app.on('ready', () => { height: 600, minWidth: 800, minHeight: 500, + center: true, + autoHideMenuBar: true, useContentSize: true, webPreferences: { + devTools: false, // Change from /quasar.conf.js > electron > nodeIntegration; // More info: https://quasar.dev/quasar-cli/developing-electron-apps/node-integration nodeIntegration: QUASAR_NODE_INTEGRATION,