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];
|
let code = devices[API.mode.get_lower()][devicename];
|
||||||
setDeviceCode(code, devicename);
|
setDeviceCode(code, devicename);
|
||||||
}
|
}
|
||||||
// $('selected-device').innerHTML = devicename;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// only for local filters
|
// only for local filters
|
||||||
|
|
@ -653,8 +652,12 @@
|
||||||
current.filter[mode] = devicename;
|
current.filter[mode] = devicename;
|
||||||
current.cdev[mode] = dev;
|
current.cdev[mode] = dev;
|
||||||
|
|
||||||
|
if (dproc) {
|
||||||
// restore last process associated with this device
|
// restore last process associated with this device
|
||||||
if (dproc) API.conf.load(null, dproc);
|
API.conf.load(null, dproc);
|
||||||
|
} else {
|
||||||
|
API.conf.update();
|
||||||
|
}
|
||||||
|
|
||||||
API.conf.save();
|
API.conf.save();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
@ -677,6 +680,7 @@
|
||||||
delete devs[selected];
|
delete devs[selected];
|
||||||
UI.deviceSave.onclick();
|
UI.deviceSave.onclick();
|
||||||
selectDevice(newname);
|
selectDevice(newname);
|
||||||
|
updateDeviceList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue