fold tiny util into api, clean up modal corner cases, add more jsdoc

This commit is contained in:
Stewart Allen 2025-12-25 16:17:44 -05:00
commit bcd2449b89
11 changed files with 339 additions and 90 deletions

View file

@ -93,8 +93,8 @@ function setMode(mode, lock, then) {
platform.update_selected();
selection.update_bounds(api.widgets.all());
api.conf.update_fields();
// because device dialog, if showing, needs to be updated
if (modal.visible()) {
// if device dialog showing, needs to be refreshed
if (modal.is('setup')) {
api.show.devices();
}
api.space.restore(null, true);