8000 Moved 'Clear Terminal' to 'View' · arduino/lab-micropython-editor@bd3cc3b · GitHub
[go: up one dir, main page]

Skip to content

Commit bd3cc3b

Browse files
committed
Moved 'Clear Terminal' to 'View'
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent b051120 commit bd3cc3b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

backend/menu.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,7 @@ module.exports = function registerMenu(win, state = {}) {
8989
enabled: state.isConnected && state.view === 'editor',
9090
click: () => win.webContents.send('shortcut-cmd', shortcuts.global.RESET)
9191
},
92-
{ type: 'separator' },
93-
{
94-
label: 'Clear terminal',
95-
accelerator: shortcuts.menu.CLEAR_TERMINAL,
96-
enabled: state.isConnected && state.view === 'editor',
97-
click: () => win.webContents.send('shortcut-cmd', shortcuts.global.CLEAR_TERMINAL)
98-
}
92+
{ type: 'separator' }
9993
]
10094
},
10195
{
@@ -111,6 +105,12 @@ module.exports = function registerMenu(win, state = {}) {
111105
accelerator: shortcuts.menu.FILES_VIEW,
112106
click: () => win.webContents.send('shortcut-cmd', shortcuts.global.FILES_VIEW)
113107
},
108+
{
109+
label: 'Clear terminal',
110+
accelerator: shortcuts.menu.CLEAR_TERMINAL,
111+
enabled: state.isConnected && state.view === 'editor',
112+
click: () => win.webContents.send('shortcut-cmd', shortcuts.global.CLEAR_TERMINAL)
113+
},
114114
{ type: 'separator' },
115115
{ role: 'resetZoom' },
116116
{ role: 'zoomIn' },

0 commit comments

Comments
 (0)
0