Can't reproduce issue #13. Appeared on installation of unknown version. Close #13 for now.

This commit is contained in:
mmcwilliams 2019-05-28 10:33:31 -04:00
parent 1b3f554492
commit 5c9091d957
10 changed files with 38 additions and 30 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "1.4.2", "version": "1.4.6",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -21,7 +21,8 @@ class Devices {
this.init(); this.init();
} }
/** /**
* * Initialize the log for "devices". Establish an ipc connection to the UI.
* Start listening on that ipc connection.
**/ **/
async init() { async init() {
this.log = await Log({ label: 'devices' }); this.log = await Log({ label: 'devices' });
@ -29,13 +30,14 @@ class Devices {
this.listen(); this.listen();
} }
/** /**
* * Listen to the "profile" channel for messages from the UI.
**/ **/
listen() { listen() {
this.ipc.on('profile', this.listener.bind(this)); this.ipc.on('profile', this.listener.bind(this));
} }
/** /**
* * The "profile" channel callback. If a profile is changed, set it in the
* local settings object.
**/ **/
listener(event, arg) { listener(event, arg) {
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{ {
"version": "1.4.2", "version": "1.4.6",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -21,7 +21,8 @@ class Devices {
this.init(); this.init();
} }
/** /**
* * Initialize the log for "devices". Establish an ipc connection to the UI.
* Start listening on that ipc connection.
**/ **/
async init() { async init() {
this.log = await Log({ label: 'devices' }); this.log = await Log({ label: 'devices' });
@ -29,13 +30,14 @@ class Devices {
this.listen(); this.listen();
} }
/** /**
* * Listen to the "profile" channel for messages from the UI.
**/ **/
listen() { listen() {
this.ipc.on('profile', this.listener.bind(this)); this.ipc.on('profile', this.listener.bind(this));
} }
/** /**
* * The "profile" channel callback. If a profile is changed, set it in the
* local settings object.
**/ **/
listener(event, arg) { listener(event, arg) {
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,8 @@ class Devices {
this.init(); this.init();
} }
/** /**
* * Initialize the log for "devices". Establish an ipc connection to the UI.
* Start listening on that ipc connection.
**/ **/
async init() { async init() {
this.log = await Log({ label: 'devices' }); this.log = await Log({ label: 'devices' });
@ -29,13 +30,14 @@ class Devices {
this.listen(); this.listen();
} }
/** /**
* * Listen to the "profile" channel for messages from the UI.
**/ **/
listen() { listen() {
this.ipc.on('profile', this.listener.bind(this)); this.ipc.on('profile', this.listener.bind(this));
} }
/** /**
* * The "profile" channel callback. If a profile is changed, set it in the
* local settings object.
**/ **/
listener(event, arg) { listener(event, arg) {
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{ {
"version": "1.4.2", "version": "1.4.6",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -33,7 +33,8 @@ class Devices {
this.init(); this.init();
} }
/** /**
* * Initialize the log for "devices". Establish an ipc connection to the UI.
* Start listening on that ipc connection.
**/ **/
private async init () { private async init () {
this.log = await Log({ label : 'devices' }) this.log = await Log({ label : 'devices' })
@ -41,13 +42,14 @@ class Devices {
this.listen() this.listen()
} }
/** /**
* * Listen to the "profile" channel for messages from the UI.
**/ **/
private listen () { private listen () {
this.ipc.on('profile', this.listener.bind(this)); this.ipc.on('profile', this.listener.bind(this));
} }
/** /**
* * The "profile" channel callback. If a profile is changed, set it in the
* local settings object.
**/ **/
private listener (event : any, arg : any){ private listener (event : any, arg : any){
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);