File tree 1 file changed +10
-6
lines changed
ui/desktop/electron-app/src/config
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const { shell, dialog } = require('electron');
2
2
const appUpdater = require ( '../helpers/app-updater.js' ) ;
3
3
const { isMac, isWindows } = require ( '../helpers/platform.js' ) ;
4
4
const config = require ( '../../config/config.js' ) ;
5
- const { version } = require ( '../cli/index.js' ) ;
5
+ const { isBuiltInCli , version } = require ( '../cli/index.js' ) ;
6
6
7
7
const generateMenuTemplate = ( ) => {
8
8
const aboutDialog = ( ) => {
@@ -30,11 +30,15 @@ const generateMenuTemplate = () => {
30
30
label : `About ${ config . productName } ` ,
31
31
click : aboutDialog ,
32
32
} ,
33
- {
34
- id : 'update' ,
35
- label : 'Check for Updates' ,
36
- click : async ( ) => appUpdater . run ( ) ,
37
- } ,
33
+ ...( isBuiltInCli
34
+ ? [
35
+ {
36
+ id : 'update' ,
37
+ label : 'Check for Updates' ,
38
+ click : async ( ) => appUpdater . run ( ) ,
39
+ } ,
40
+ ]
41
+ : [ ] ) ,
38
42
{ type : 'separator' } ,
39
43
{ role : 'services' } ,
40
44
{ type : 'separator' } ,
You can’t perform that action at this time.
0 commit comments