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
|
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(() => {
|
||||||
|
@ -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'
|
||||||
} ]
|
} ]
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user