Sequence UI was broken with capture/transfer logic

This commit is contained in:
mmcw-dev 2018-01-05 09:17:41 -05:00
parent a84b1019f1
commit 4c2af4415c
3 changed files with 8 additions and 9 deletions

View File

@ -109,7 +109,7 @@ light.colorPickers = function () {
});
light.rgb.init();
light.kelvin.init();
light.cmy.init();
//light.cmy.init();
};
light.set = function (rgb, callback) { //rgb = [0,0,0]
'use strict';

View File

@ -74,10 +74,10 @@ seq.run = function () {
log.info('Sequence completed in ' + humanizeDuration(timeEnd), 'SEQUENCE', true);
}
capture.report = ipcRenderer.sendSync('transfer', { action: 'end'});
if (capture.active) {
alert(capture.report);
}
//capture.report = ipcRenderer.sendSync('transfer', { action: 'end'});
//if (capture.active) {
//alert(capture.report);
//}
gui.notify('Sequence done!', (mcopy.state.sequence.arr.length * mcopy.loop) + ' actions completed in ' + humanizeDuration(timeEnd));
//clear gui
$('.row input').removeClass('h');
@ -108,7 +108,7 @@ seq.init = function (start) {
}
seq.stop(false);
seq.i = start;
ipcRenderer.sendSync('transfer', { action: 'start'});
//ipcRenderer.sendSync('transfer', { action: 'start'});
seq.run();
};
seq.stats = function () {

View File

@ -343,11 +343,10 @@ cam.end = function (cmd, id, ms) {
};
log.file = function () {
const platform = process.platform
let logPath = `/var/log/mcopy/`
if (platform === 'darwin') {
if (process.platform === 'darwin') {
} else if (platform === 'win32') {
} else if (process.platform === 'win32') {
}