add ability to copy/paste single profile settings
This commit is contained in:
parent
fa6edbf86d
commit
0a70c67ff1
1 changed files with 12 additions and 0 deletions
12
js/kiri.js
12
js/kiri.js
|
|
@ -2729,6 +2729,18 @@ self.kiri.license = exports.LICENSE;
|
|||
case cca('c'): // open control window
|
||||
showSerial(true);
|
||||
break;
|
||||
case cca('i'): // single settings edit
|
||||
let v = prompt(`edit "${settings.process.processName}"`, JSON.stringify(settings.process));
|
||||
if (v) {
|
||||
try {
|
||||
settings.process = JSON.parse(v);
|
||||
updateFields();
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
alert("invalid settings format");
|
||||
}
|
||||
}
|
||||
break;
|
||||
case cca('U'): // full settings url
|
||||
storeSettingsToServer(true);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue