@@ -54,15 +54,15 @@ export default class MenuBuilder {
54
54
55
55
buildDarwinTemplate ( ) : MenuItemConstructorOptions [ ] {
56
56
const subMenuAbout : DarwinMenuItemConstructorOptions = {
57
- label : 'PlainPrinter ' ,
57
+ label : 'Help ' ,
58
58
submenu : [
59
59
{
60
- label : 'About PlainPrinter ' ,
60
+ label : 'About' ,
61
61
selector : 'orderFrontStandardAboutPanel:' ,
62
62
} ,
63
63
{ type : 'separator' } ,
64
64
{
65
- label : 'Hide PlainPrinter ' ,
65
+ label : 'Hide' ,
66
66
accelerator : 'Command+H' ,
67
67
selector : 'hide:' ,
68
68
} ,
@@ -82,22 +82,6 @@ export default class MenuBuilder {
82
82
} ,
83
83
] ,
84
84
} ;
85
- const subMenuEdit : DarwinMenuItemConstructorOptions = {
86
- label : 'Edit' ,
87
- submenu : [
88
- { label : 'Undo' , accelerator : 'Command+Z' , selector : 'undo:' } ,
89
- { label : 'Redo' , accelerator : 'Shift+Command+Z' , selector : 'redo:' } ,
90
- { type : 'separator' } ,
91
- { label : 'Cut' , accelerator : 'Command+X' , selector : 'cut:' } ,
92
- { label : 'Copy' , accelerator : 'Command+C' , selector : 'copy:' } ,
93
- { label : 'Paste' , accelerator : 'Command+V' , selector : 'paste:' } ,
94
- {
95
- label : 'Select All' ,
96
- accelerator : 'Command+A' ,
97
- selector : 'selectAll:' ,
98
- } ,
99
- ] ,
100
- } ;
101
85
const subMenuViewDev : MenuItemConstructorOptions = {
102
86
label : 'View' ,
103
87
submenu : [
@@ -124,18 +108,6 @@ export default class MenuBuilder {
124
108
} ,
125
109
] ,
126
110
} ;
127
- const subMenuViewProd : MenuItemConstructorOptions = {
128
- label : 'View' ,
129
- submenu : [
130
- {
131
- label : 'Toggle Full Screen' ,
132
- accelerator : 'Ctrl+Command+F' ,
133
- click : ( ) => {
134
- this . mainWindow . setFullScreen ( ! this . mainWindow . isFullScreen ( ) ) ;
135
- } ,
136
- } ,
137
- ] ,
138
- } ;
139
111
const subMenuWindow : DarwinMenuItemConstructorOptions = {
140
112
label : 'Window' ,
141
113
submenu : [
@@ -153,27 +125,32 @@ export default class MenuBuilder {
153
125
label : 'Help' ,
154
126
submenu : [
155
127
{
156
- label : 'PlainLab home page ' ,
128
+ label : 'Privacy ' ,
157
129
click ( ) {
158
- shell . openExternal ( 'https://plainlab.github.io' ) ;
130
+ shell . openExternal (
131
+ 'https://screenprinter.manhtai.com/privacy.html'
132
+ ) ;
159
133
} ,
160
134
} ,
161
135
{
162
- label : 'PlainPrinter repo ' ,
136
+ label : 'Support ' ,
163
137
click ( ) {
164
- shell . openExternal ( 'https://github.com/plainlab/plainprinter' ) ;
138
+ shell . openExternal (
139
+ 'https://screenprinter.manhtai.com/support.html'
140
+ ) ;
165
141
} ,
166
142
} ,
167
143
] ,
168
144
} ;
169
145
170
- const subMenuView =
146
+ if (
171
147
process . env . NODE_ENV === 'development' ||
172
148
process . env . DEBUG_PROD === 'true'
173
- ? subMenuViewDev
174
- : subMenuViewProd ;
149
+ ) {
150
+ return [ subMenuAbout , subMenuViewDev , subMenuWindow , subMenuHelp ] ;
151
+ }
175
152
176
- return [ subMenuAbout , subMenuEdit , subMenuView , subMenuWindow , subMenuHelp ] ;
153
+ return [ subMenuAbout , subMenuWindow , subMenuHelp ] ;
177
154
}
178
155
179
156
buildDefaultTemplate ( ) {
@@ -240,15 +217,19 @@ export default class MenuBuilder {
240
217
label : 'Help' ,
241
218
submenu : [
242
219
{
243
- label : 'Home Page ' ,
220
+ label : 'Privacy ' ,
244
221
click ( ) {
245
- shell . openExternal ( 'https://plainlab.github.io' ) ;
222
+ shell . openExternal (
223
+ 'https://screenprinter.manhtai.com/privacy.html'
224
+ ) ;
246
225
} ,
247
226
} ,
248
227
{
249
- label : 'GitHub ' ,
228
+ label : 'Support ' ,
250
229
click ( ) {
251
- shell . openExternal ( 'https://github.com/plainlab/plainprinter' ) ;
230
+ shell . openExternal (
231
+ 'https://screenprinter.manhtai.com/support.html'
232
+ ) ;
252
233
} ,
253
234
} ,
254
235
] ,
0 commit comments