This commit is contained in:
parent
1b3f554492
commit
5c9091d957
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.4.2",
|
||||
"version": "1.4.6",
|
||||
"ext_port": 1111,
|
||||
"profiles": {
|
||||
"mcopy": {
|
||||
|
|
|
@ -21,7 +21,8 @@ class Devices {
|
|||
this.init();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Initialize the log for "devices". Establish an ipc connection to the UI.
|
||||
* Start listening on that ipc connection.
|
||||
**/
|
||||
async init() {
|
||||
this.log = await Log({ label: 'devices' });
|
||||
|
@ -29,13 +30,14 @@ class Devices {
|
|||
this.listen();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Listen to the "profile" channel for messages from the UI.
|
||||
**/
|
||||
listen() {
|
||||
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) {
|
||||
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.4.2",
|
||||
"version": "1.4.6",
|
||||
"ext_port": 1111,
|
||||
"profiles": {
|
||||
"mcopy": {
|
||||
|
|
|
@ -21,7 +21,8 @@ class Devices {
|
|||
this.init();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Initialize the log for "devices". Establish an ipc connection to the UI.
|
||||
* Start listening on that ipc connection.
|
||||
**/
|
||||
async init() {
|
||||
this.log = await Log({ label: 'devices' });
|
||||
|
@ -29,13 +30,14 @@ class Devices {
|
|||
this.listen();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Listen to the "profile" channel for messages from the UI.
|
||||
**/
|
||||
listen() {
|
||||
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) {
|
||||
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -21,7 +21,8 @@ class Devices {
|
|||
this.init();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Initialize the log for "devices". Establish an ipc connection to the UI.
|
||||
* Start listening on that ipc connection.
|
||||
**/
|
||||
async init() {
|
||||
this.log = await Log({ label: 'devices' });
|
||||
|
@ -29,13 +30,14 @@ class Devices {
|
|||
this.listen();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Listen to the "profile" channel for messages from the UI.
|
||||
**/
|
||||
listen() {
|
||||
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) {
|
||||
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.4.2",
|
||||
"version": "1.4.6",
|
||||
"ext_port": 1111,
|
||||
"profiles": {
|
||||
"mcopy": {
|
||||
|
|
|
@ -33,7 +33,8 @@ class Devices {
|
|||
this.init();
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Initialize the log for "devices". Establish an ipc connection to the UI.
|
||||
* Start listening on that ipc connection.
|
||||
**/
|
||||
private async init () {
|
||||
this.log = await Log({ label : 'devices' })
|
||||
|
@ -41,13 +42,14 @@ class Devices {
|
|||
this.listen()
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Listen to the "profile" channel for messages from the UI.
|
||||
**/
|
||||
private listen () {
|
||||
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){
|
||||
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);
|
||||
|
|
Loading…
Reference in New Issue