Remove broken settings shortcut from menu

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2019-12-05 13:39:51 +01:00 committed by Lorenzo Alberto Maria Ambrosi
parent 28b51a9b46
commit 84fe5004a9
2 changed files with 0 additions and 27 deletions

View File

@ -489,13 +489,6 @@ app.controller('StateController', function ($rootScope, $scope) {
this.currentName = null this.currentName = null
}) })
// Handle keyboard shortcut to open the settings
app.run(($state) => {
electron.ipcRenderer.on('menu:preferences', () => {
$state.go('settings')
})
})
// Ensure user settings are loaded before // Ensure user settings are loaded before
// we bootstrap the Angular.js application // we bootstrap the Angular.js application
angular.element(document).ready(() => { angular.element(document).ready(() => {

View File

@ -49,17 +49,6 @@ const buildWindowMenu = (window) => {
} }
} }
/**
* @summary Open the main window's settings page
* @example
* showSettings()
*/
const showSettings = () => {
if (window) {
window.webContents.send('menu:preferences')
}
}
const menuTemplate = [ const menuTemplate = [
{ {
role: 'editMenu' role: 'editMenu'
@ -111,12 +100,6 @@ const buildWindowMenu = (window) => {
label: 'About Etcher' label: 'About Etcher'
}, { }, {
type: 'separator' type: 'separator'
}, {
label: 'Preferences',
accelerator: 'Command+,',
click: showSettings
}, {
type: 'separator'
}, { }, {
role: 'hide' role: 'hide'
}, { }, {
@ -133,9 +116,6 @@ const buildWindowMenu = (window) => {
menuTemplate.unshift({ menuTemplate.unshift({
label: packageJson.displayName, label: packageJson.displayName,
submenu: [ { submenu: [ {
label: 'Settings',
click: showSettings
}, {
role: 'quit' role: 'quit'
} ] } ]
}) })