Layout ยท console.warn
layout: restore("{id}") - no such window.
Printed by Layout, prefixed [lattice], since 1.54.0.
Warnings reference › layout.restore.unknown
- Identifier
layout.restore.unknown- Raised by
- Layout
- Since
- 1.54.0
What happened
layout.restore(id) named a window the layout does not hold, so no display mode was left and the call returned false.
The fix
Check the id against layout.windows().
Reference
Covered in full at the API reference.