Skip to content

Commit

Permalink
Adjust main window settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoyo San committed Apr 2, 2020
1 parent bb3ac56 commit 89717d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src-electron/main-process/electron-main-menu-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export const menuTemplate = [
submenu: [
{ role: 'reload' },
{ role: 'forcereload' },
{ role: 'toggledevtools' },
{ type: 'separator' },
{ role: 'resetzoom' },
{ role: 'zoomin' },
Expand Down Expand Up @@ -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')
}
}
]
Expand Down
3 changes: 3 additions & 0 deletions src-electron/main-process/electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 89717d2

Please sign in to comment.