Closed sergeichestakov closed 1 year ago
Currently we only set certain state like last open Repl, window bounds, etc when the Window closes whereas we should also do it when a new window is open so that it receives the latest values from the focused or currently open window
Why
Currently we only set certain state like last open Repl, window bounds, etc when the Window closes whereas we should also do it when a new window is open so that it receives the latest values from the focused or currently open window. This is most event in something like restoring window bounds where we prefer the bounds of the last window that was closed rather than the last one you had open which results in an inconsistent experience.
Fixes WS-819
What changed
Persist values from current window when creating new one
Test plan
Restoring window bounds and bg color work better and prefer the values of the last window you had open if one exists.