This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2017-18 IBM Corporation
2
+ * Copyright 2017-21 IBM Corporation
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -133,7 +133,7 @@ export const install = (createWindow: (executeThisArgvPlease?: string[]) => void
133
133
}
134
134
]
135
135
136
- const menuTemplate : MenuItemConstructorOptions [ ] = [
136
+ const fileMenu : MenuItemConstructorOptions [ ] = [
137
137
{
138
138
label : 'File' ,
139
139
submenu : fileMenuItems
@@ -151,8 +151,10 @@ export const install = (createWindow: (executeThisArgvPlease?: string[]) => void
151
151
{ role : 'delete' } ,
152
152
{ role : 'selectAll' }
153
153
]
154
- } ,
154
+ }
155
+ ]
155
156
157
+ const viewMenu : MenuItemConstructorOptions [ ] = [
156
158
{
157
159
label : 'View' ,
158
160
submenu : [
@@ -171,8 +173,10 @@ export const install = (createWindow: (executeThisArgvPlease?: string[]) => void
171
173
{ type : 'separator' } ,
172
174
{ role : 'togglefullscreen' }
173
175
]
174
- } ,
175
- notebookMenuItem ,
176
+ }
177
+ ]
178
+
179
+ const windowMenu : MenuItemConstructorOptions [ ] = [
176
180
{
177
181
role : 'window' ,
178
182
submenu : [ { role : 'minimize' } , { role : 'close' , accelerator : closeAccelerator } ]
@@ -184,6 +188,11 @@ export const install = (createWindow: (executeThisArgvPlease?: string[]) => void
184
188
}
185
189
]
186
190
191
+ const menuTemplate : MenuItemConstructorOptions [ ] = fileMenu
192
+ . concat ( viewMenu )
193
+ . concat ( notebookMenuItem ? [ notebookMenuItem ] : [ ] )
194
+ . concat ( windowMenu )
195
+
187
196
const about : MenuItemConstructorOptions = {
188
197
label : `About ${ productName } ` ,
189
198
click : ( ) => {
You can’t perform that action at this time.
0 commit comments