mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
Remove broken settings shortcut from menu
Change-type: patch
This commit is contained in:
parent
28b51a9b46
commit
84fe5004a9
@ -489,13 +489,6 @@ app.controller('StateController', function ($rootScope, $scope) {
|
||||
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
|
||||
// we bootstrap the Angular.js application
|
||||
angular.element(document).ready(() => {
|
||||
|
@ -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 = [
|
||||
{
|
||||
role: 'editMenu'
|
||||
@ -111,12 +100,6 @@ const buildWindowMenu = (window) => {
|
||||
label: 'About Etcher'
|
||||
}, {
|
||||
type: 'separator'
|
||||
}, {
|
||||
label: 'Preferences',
|
||||
accelerator: 'Command+,',
|
||||
click: showSettings
|
||||
}, {
|
||||
type: 'separator'
|
||||
}, {
|
||||
role: 'hide'
|
||||
}, {
|
||||
@ -133,9 +116,6 @@ const buildWindowMenu = (window) => {
|
||||
menuTemplate.unshift({
|
||||
label: packageJson.displayName,
|
||||
submenu: [ {
|
||||
label: 'Settings',
|
||||
click: showSettings
|
||||
}, {
|
||||
role: 'quit'
|
||||
} ]
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user