add empty sync api to clean up use
This commit is contained in:
parent
0cca3f9f5b
commit
2a21f1aca2
3 changed files with 14 additions and 5 deletions
|
|
@ -697,6 +697,7 @@ gapp.register("kiri.main", [], (root, exports) => {
|
|||
api.conf.load(null, name);
|
||||
}
|
||||
api.conf.save();
|
||||
api.settings.sync.put();
|
||||
} catch (e) {
|
||||
UC.alert('malformed settings object');
|
||||
}
|
||||
|
|
@ -726,6 +727,7 @@ gapp.register("kiri.main", [], (root, exports) => {
|
|||
let current = settings.get();
|
||||
let name = e.target.getAttribute("del");
|
||||
delete current.sproc[getMode()][name];
|
||||
api.settings.sync.put();
|
||||
updateProcessList();
|
||||
api.conf.save();
|
||||
triggerSettingsEvent();
|
||||
|
|
|
|||
Loading…
Reference in a new issue