mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
some tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fb97d26694
commit
987a3f0ddb
@ -1684,6 +1684,7 @@ module.Journal = ImageGridFeatures.Feature({
|
|||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
|
// XXX add .resetDefaults(..)...
|
||||||
var ConfigLocalStorageActions = actions.Actions({
|
var ConfigLocalStorageActions = actions.Actions({
|
||||||
config: {
|
config: {
|
||||||
'config-local-storage-key': 'config',
|
'config-local-storage-key': 'config',
|
||||||
@ -3640,6 +3641,10 @@ module.ImageBookmarks = ImageGridFeatures.Feature({
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
var AppControlActions = actions.Actions({
|
var AppControlActions = actions.Actions({
|
||||||
|
config: {
|
||||||
|
'application-window': null,
|
||||||
|
},
|
||||||
|
|
||||||
// XXX revise these...
|
// XXX revise these...
|
||||||
close: ['File|Interface/Close viewer',
|
close: ['File|Interface/Close viewer',
|
||||||
function(){
|
function(){
|
||||||
@ -3661,6 +3666,7 @@ var AppControlActions = actions.Actions({
|
|||||||
|
|
||||||
|
|
||||||
// XXX this needs a better .isApplicable(..)
|
// XXX this needs a better .isApplicable(..)
|
||||||
|
// XXX store/load window state...
|
||||||
var AppControl =
|
var AppControl =
|
||||||
module.AppControl = ImageGridFeatures.Feature({
|
module.AppControl = ImageGridFeatures.Feature({
|
||||||
title: '',
|
title: '',
|
||||||
@ -3682,14 +3688,13 @@ module.AppControl = ImageGridFeatures.Feature({
|
|||||||
handlers: [
|
handlers: [
|
||||||
['start',
|
['start',
|
||||||
function(){
|
function(){
|
||||||
//or global.window.nwDispatcher.requireNwGui()
|
// or global.window.nwDispatcher.requireNwGui()
|
||||||
//(see https://github.com/rogerwang/node-webkit/issues/707)
|
// (see: https://github.com/rogerwang/node-webkit/issues/707)
|
||||||
var gui = requirejs('nw.gui')
|
var gui = requirejs('nw.gui')
|
||||||
|
|
||||||
// Get the current window
|
|
||||||
var win = gui.Window.get()
|
var win = gui.Window.get()
|
||||||
|
|
||||||
// XXX get state from config and load it...
|
// XXX get state from config and load it...
|
||||||
|
// XXX
|
||||||
|
|
||||||
win.show()
|
win.show()
|
||||||
}],
|
}],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user