forked from Zeal8bit/Zeal-WebEmulator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
menubar.js
65 lines (64 loc) · 1.55 KB
/
menubar.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
const fs = require("node:fs");
module.exports = [
{
label: 'App',
submenu: [
{
label: 'Quit',
accelerator: 'CommandOrControl+q',
click() {
app.quit();
}
},
{
type: 'separator'
},
{
label: 'Reload',
accelerator: 'CommandOrControl+r',
click() {
mainWindow.webContents.reload();
}
},
{
type: 'separator'
},
{
label: 'Force Reload',
accelerator: 'CommandOrControl+f',
click() {
mainWindow.webContents.reload(true);
}
},
]
},
{
label: 'Developers',
submenu: [
{
label: 'Open DevTools',
accelerator: 'CommandOrControl+s',
click() {
mainWindow.webContents.openDevTools();
}
}
]
},
{
label: 'About',
submenu: [
{
label: 'Git Repository',
async click() {
opn('https://github.com/Zeal8bit/Zeal-WebEmulator');
}
},
{
label: 'Version',
click() {
console.error("Version window is developing");
}
}
]
},
];