Skip to content

Commit 26f71e7

Browse files
committed
Add About app to Help submenu 📝
Signed-off-by: Jillian Daguil <[email protected]>
1 parent 63bb080 commit 26f71e7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

main.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,26 @@ function getTemplate() {
208208
label: '&Help',
209209
role: 'help',
210210
submenu: [
211+
{
212+
label: 'About AboutCode Manager',
213+
click: function(item, focusedWindow) {
214+
var win = new BrowserWindow({ frame: true, width: 250, height: 200 });
215+
win.on('closed', function () { win = null });
216+
win.loadURL('file://' + __dirname + '/about.html');
217+
win.show();
218+
219+
},
220+
},
221+
{
222+
type: 'separator'
223+
},
211224
{
212225
label: `Version ${packageJson.version}`,
213226
enabled: false
214227
},
228+
{
229+
type: 'separator'
230+
},
215231
{
216232
label: 'Learn More',
217233
click: function() {

0 commit comments

Comments
 (0)