notes and docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-01-16 01:57:15 +03:00
parent c885e0855c
commit c0ecc7df80

View File

@ -393,6 +393,7 @@ module.PortableAppControl = core.ImageGridFeatures.Feature({
config: { config: {
//'window-title': 'ImageGrid.Viewer (${VERSION}): ${FILENAME}', //'window-title': 'ImageGrid.Viewer (${VERSION}): ${FILENAME}',
'window-title': '${FILENAME} - ImageGrid.Viewer (${VERSION})', 'window-title': '${FILENAME} - ImageGrid.Viewer (${VERSION})',
}, },
handlers: [ handlers: [
@ -435,6 +436,18 @@ module.PortableAppControl = core.ImageGridFeatures.Feature({
// XXX would be nice to store/restore dev-tools state... // XXX would be nice to store/restore dev-tools state...
var WindowedAppControlActions = actions.Actions({ var WindowedAppControlActions = actions.Actions({
config: { config: {
// Window state:
// 'window': {
// width: <number>,
// height: <number>,
// x: <number>,
// y: <number>,
//
// fullscreen: <bool>,
//
// devtools: <bool>,
// },
'window-delay-initial-display': 500, 'window-delay-initial-display': 500,
'splash-screen-delay-hide': 500, 'splash-screen-delay-hide': 500,
@ -458,6 +471,9 @@ var WindowedAppControlActions = actions.Actions({
// fullscreen... // fullscreen...
// ...avoid overwriting size... // ...avoid overwriting size...
if(this.toggleFullScreen('?') == 'on'){ if(this.toggleFullScreen('?') == 'on'){
// NOTE: this needs to be rewritten to correctly get stored
// in the config store, especially if a default state
// is defined...
var cfg = this.config.window = this.config.window || {} var cfg = this.config.window = this.config.window || {}
cfg.fullscreen = true cfg.fullscreen = true
cfg.devtools = this.showDevTools('?') cfg.devtools = this.showDevTools('?')