diff --git a/app/data/cfg.json b/app/data/cfg.json index 46c6e6a..9bc806c 100644 --- a/app/data/cfg.json +++ b/app/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.95", + "version": "1.8.96", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/app/lib/ui/devices.js b/app/lib/ui/devices.js index c9c09d2..3420f01 100644 --- a/app/lib/ui/devices.js +++ b/app/lib/ui/devices.js @@ -34,7 +34,7 @@ class Devices { let devs = []; let notify = 'Connected to '; let p; - if (arg.camera && arg.camera.exposure) { + if (typeof arg.camera !== 'undefined' && typeof arg.camera.exposure !== undefined) { $('#submit_cam_time').removeClass('hide'); $('#cam_time').removeAttr('readonly'); } @@ -69,20 +69,10 @@ class Devices { $('#devices').append(opt); } } - if (arg && arg.profile) { - $('#profile').val(arg.profile); - log.info(`Using configuration profile "${arg.profile}"`, 'DEVICES', true, true); - p = cfg.profiles[arg.profile]; - if (typeof p.light !== 'undefined' && p.light === false) { - light.disable(); - } - else { - light.enable(); - } - timing.reset(p); - //devices.profile(arg.profile) + if (typeof arg !== 'undefined' && typeof arg.profile !== 'undefined') { + devices.profile(arg.profile); } - if (arg && arg.timing) { + if (typeof arg !== 'undefined' && typeof arg.timing !== 'undefined') { timing.restore(arg.timing); } if (arg.projector_second) { @@ -137,6 +127,7 @@ class Devices { for (let key of keys) { cfg[key] = keys[key]; } + $('#profile').val(profile); timing.reset(p); if (typeof p.light !== 'undefined' && p.light === false) { light.disable(); diff --git a/app/lib/ui/devices.js.map b/app/lib/ui/devices.js.map index 04877e7..cb558a0 100644 --- a/app/lib/ui/devices.js.map +++ b/app/lib/ui/devices.js.map @@ -1 +1 @@ -{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/lib/ui/devices.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;AAEb,qCAAqC;AAErC,IAAI,OAAiB,CAAC;AAEtB,MAAM,OAAO;IAEZ;QADQ,OAAE,GAAY,SAAS,CAAC;IAGhC,CAA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I,CAAC,CAAC;YAClB,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,8BAA8B,GAAG,EAAE,CAAC,CAAC;YACvD,WAAW,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;SACpC;aAAM;YACN,CAAC,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YACrD,CAAC,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;SACvC;IACF,CAAC;IAED,YAAY;QACX,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IAED,UAAU;QACT,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC;QACjD,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,4DAA4D,CAAC,CAAC;IACjF,CAAC;CACD;AAED,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/app/lib/ui/timing.js b/app/lib/ui/timing.js index 4a969a1..33f024f 100644 --- a/app/lib/ui/timing.js +++ b/app/lib/ui/timing.js @@ -80,7 +80,7 @@ class Timing { this.updateUI('#proj_time', proj); } } - log.info('reset'); + log.info('Timing reset'); } restore(timing) { this.data = timing; diff --git a/app/lib/ui/timing.js.map b/app/lib/ui/timing.js.map index a8ad2e7..9f57c04 100644 --- a/app/lib/ui/timing.js.map +++ b/app/lib/ui/timing.js.map @@ -1 +1 @@ -{"version":3,"file":"timing.js","sourceRoot":"","sources":["../../src/lib/ui/timing.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,IAAI,MAAe,CAAC;AAMpB,MAAM,MAAM;IAkC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AAM,CAAC"} \ No newline at end of file +{"version":3,"file":"timing.js","sourceRoot":"","sources":["../../src/lib/ui/timing.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,IAAI,MAAe,CAAC;AAMpB,MAAM,MAAM;IAkCX;QAjCO,SAAI,GAAgB,EAAE,CAAA;QAErB,gBAAW,GAAS;YAC3B,GAAG,EAAG,KAAK;YACR,GAAG,EAAG,MAAM;YACZ,GAAG,EAAG,MAAM;YACZ,GAAG,EAAG,OAAO;YAChB,GAAG,EAAG,MAAM;YACT,GAAG,EAAG,OAAO;YAChB,GAAG,EAAG,OAAO;SACb,CAAA;QAEO,YAAO,GAAU;YACxB,IAAI,EAAG,KAAK;YACZ,IAAI,EAAG,KAAK;YACZ,IAAI,EAAG,OAAO;YACX,IAAI,EAAG,OAAO;YACd,KAAK,EAAE,MAAM;YACb,KAAK,EAAE,MAAM;YACb,KAAK,EAAG,MAAM;YACd,KAAK,EAAG,MAAM;YACd,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,MAAM;YACjB,IAAI,EAAG,MAAM;YACb,IAAI,EAAG,MAAM;YACb,KAAK,EAAG,OAAO;YACf,KAAK,EAAG,OAAO;YACf,KAAK,EAAG,OAAO;YACf,KAAK,EAAG,OAAO;YACf,MAAM,EAAG,OAAO;YAChB,MAAM,EAAG,OAAO;SAChB,CAAA;IAID,CAAC;IAEM,IAAI;QACV,IAAI,CAAC,MAAM,EAAE,CAAC;IACf,CAAC;IAEO,MAAM;QACb,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAClD,CAAC;IAEO,MAAM,CAAE,KAAW,EAAE,GAAS;QACrC,IAAI,OAAO,GAAG,CAAC,CAAC,KAAK,WAAW,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,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C,SAAS,EAAE,EAAE,MAAM,EAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAA;IACpD,CAAC;CACD;AAED,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;AAEtB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/app/package-lock.json b/app/package-lock.json index dc1bc02..07ab0a0 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.95", + "version": "1.8.96", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/app/package.json b/app/package.json index 1008795..7bda8f6 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.95", + "version": "1.8.96", "description": "GUI for the mcopy small gauge film optical printer platform", "main": "main.js", "scripts": { diff --git a/app/src/lib/ui/devices.ts b/app/src/lib/ui/devices.ts index 6137b56..85c124b 100644 --- a/app/src/lib/ui/devices.ts +++ b/app/src/lib/ui/devices.ts @@ -30,7 +30,7 @@ class Devices { let notify : string = 'Connected to '; let p : any; - if (arg.camera && arg.camera.exposure) { + if (typeof arg.camera !== 'undefined' && typeof arg.camera.exposure !== undefined) { $('#submit_cam_time').removeClass('hide'); $('#cam_time').removeAttr('readonly'); } @@ -67,19 +67,11 @@ class Devices { } } - if (arg && arg.profile) { - $('#profile').val(arg.profile) - log.info(`Using configuration profile "${arg.profile}"`, 'DEVICES', true, true); - p = cfg.profiles[arg.profile]; - if (typeof p.light !== 'undefined' && p.light === false) { - light.disable(); - } else { - light.enable(); - } - timing.reset(p); - //devices.profile(arg.profile) + if (typeof arg !== 'undefined' && typeof arg.profile !== 'undefined') { + devices.profile(arg.profile); } - if (arg && arg.timing) { + + if (typeof arg !== 'undefined' && typeof arg.timing !== 'undefined') { timing.restore(arg.timing); } @@ -139,13 +131,14 @@ class Devices { for (let key of keys) { cfg[key] = keys[key]; } + $('#profile').val(profile) timing.reset(p); if (typeof p.light !== 'undefined' && p.light === false) { light.disable(); } else { light.enable(); } - ipcRenderer.send('profile', { profile }) + ipcRenderer.send('profile', { profile }); timing.store(); } diff --git a/app/src/lib/ui/timing.ts b/app/src/lib/ui/timing.ts index 35eb4a8..5fa0977 100644 --- a/app/src/lib/ui/timing.ts +++ b/app/src/lib/ui/timing.ts @@ -94,7 +94,7 @@ class Timing { this.updateUI('#proj_time', proj); } } - log.info('reset') + log.info('Timing reset'); } public restore (timing : TimingData) { diff --git a/data/cfg.json b/data/cfg.json index 46c6e6a..9bc806c 100644 --- a/data/cfg.json +++ b/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.95", + "version": "1.8.96", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/package-lock.json b/package-lock.json index a655036..bac724e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mcopy", - "version": "1.8.95", + "version": "1.8.96", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mcopy", - "version": "1.8.95", + "version": "1.8.96", "license": "MIT", "dependencies": { "alert": "file:app/lib/alert", diff --git a/package.json b/package.json index 7cf5096..19c843b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcopy", - "version": "1.8.95", + "version": "1.8.96", "description": "Small gauge film optical printer platform", "main": "build.js", "directories": { diff --git a/processing/mcopy/cfg.json b/processing/mcopy/cfg.json index 46c6e6a..9bc806c 100644 --- a/processing/mcopy/cfg.json +++ b/processing/mcopy/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.95", + "version": "1.8.96", "ext_port": 1111, "profiles": { "mcopy": {