tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-01-26 22:45:41 +03:00
parent 6f77e6116b
commit eb589f4eb9
3 changed files with 7 additions and 16 deletions

View File

@ -214,8 +214,7 @@ var NWHostActions = actions.Actions({
// XXX get the devtools stage...
return false }
nw.Window.get().showDevTools &&
nw.Window.get().showDevTools()
}],
nw.Window.get().showDevTools() }],
showInFolder: ['File|Image/Show in $folder',
function(image){
image = this.images[this.data.getImage(image)]
@ -224,8 +223,7 @@ var NWHostActions = actions.Actions({
var filename = image.path
var path = pathlib.normalize(base + '/' + filename)
nw.Shell.showItemInFolder(path)
}],
nw.Shell.showItemInFolder(path) }],
toggleSplashScreen: ['Interface/',
{mode: 'advancedBrowseModeAction'},
@ -270,18 +268,11 @@ var ElectronHostActions = actions.Actions({
value
&& window.moveTo(...value) },
// XXX revise...
// XXX need to handle mazimize correctly -- see e.js...
// XXX need to handle maximize correctly -- see e.js...
// XXX do we need .hide(..) here???
show: ['- Window/',
function(){
electron.ipcRenderer.send('show') }],
// if(electron.remote.getGlobal('readyToShow')){
// electron.remote.getCurrentWindow().show()
// } else {
// var win = electron.remote.getCurrentWindow()
// win.once('ready-to-show',
// function(){ win.show() }) } }],
minimize: ['Window/Minimize',
function(){
electron.ipcRenderer.send('minimize') }],

View File

@ -28,8 +28,8 @@
"ig-types": "^6.0.9",
"json5": "^2.2.0",
"object-run": "^1.0.1",
"requirejs": "^2.3.6",
"requirejs-plugins": "^1.0.2",
"requirejs": "*",
"requirejs-plugins": "*",
"sharp": "^0.25.4",
"v8-compile-cache": "^2.2.0",
"wildglob": "^0.1.1"

View File

@ -38,8 +38,8 @@
"ig-types": "^6.0.9",
"json5": "^2.2.0",
"object-run": "^1.0.1",
"requirejs": "^2.3.6",
"requirejs-plugins": "^1.0.2",
"requirejs": "*",
"requirejs-plugins": "*",
"sharp": "^0.25.4",
"v8-compile-cache": "^2.2.0",
"wildglob": "^0.1.1"