replit / desktop

Replit Desktop App
116 stars 7 forks source link

Persist values from current window when creating new one #107

Closed sergeichestakov closed 1 year ago

sergeichestakov commented 1 year ago

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.

linear[bot] commented 1 year ago
WS-819 Set state on Window open as well as close

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