add batch widget add / delete for usability / performance with very large #s of widgets

This commit is contained in:
Stewart Allen 2022-04-05 15:40:27 -07:00
commit 7704b51d5f
3 changed files with 52 additions and 16 deletions

View file

@ -560,7 +560,7 @@ function settingsImport(data, ask) {
if (isWork) {
api.platform.clear();
kiri.codec.decode(data.work).forEach(widget => {
api.platform.add(widget, 0, true);
api.platform.add(widget, 0, true, true);
});
if (data.view) {
space.view.load(data.view);