Set value to digital projector feature when changing it in UI
This commit is contained in:
parent
7fd449724b
commit
bf148c6784
|
@ -75,6 +75,7 @@ gui.updateProj = function (t) {
|
|||
t.value = mcopy.state.projector.pos;
|
||||
gui.counterFormat(t);
|
||||
}
|
||||
proj.setValue(t.value);
|
||||
};
|
||||
gui.updateState = function () {
|
||||
'use strict';
|
||||
|
|
|
@ -71,4 +71,13 @@ proj.listen = function () {
|
|||
});
|
||||
};
|
||||
|
||||
proj.setValue = function (val) {
|
||||
'use strict';
|
||||
var obj = {
|
||||
val: val,
|
||||
id : uuid.v4()
|
||||
};
|
||||
ipcRenderer.sendSync('proj', obj);
|
||||
}
|
||||
|
||||
module.exports = proj;
|
Loading…
Reference in New Issue