fix a couple of bugs with custom device names and ui state
This commit is contained in:
parent
3fde3b0590
commit
c52ee009af
1 changed files with 7 additions and 3 deletions
|
|
@ -548,7 +548,6 @@
|
|||
let code = devices[API.mode.get_lower()][devicename];
|
||||
setDeviceCode(code, devicename);
|
||||
}
|
||||
// $('selected-device').innerHTML = devicename;
|
||||
}
|
||||
|
||||
// only for local filters
|
||||
|
|
@ -653,8 +652,12 @@
|
|||
current.filter[mode] = devicename;
|
||||
current.cdev[mode] = dev;
|
||||
|
||||
// restore last process associated with this device
|
||||
if (dproc) API.conf.load(null, dproc);
|
||||
if (dproc) {
|
||||
// restore last process associated with this device
|
||||
API.conf.load(null, dproc);
|
||||
} else {
|
||||
API.conf.update();
|
||||
}
|
||||
|
||||
API.conf.save();
|
||||
} catch (e) {
|
||||
|
|
@ -677,6 +680,7 @@
|
|||
delete devs[selected];
|
||||
UI.deviceSave.onclick();
|
||||
selectDevice(newname);
|
||||
updateDeviceList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue