replit / desktop

Replit Desktop App
116 stars 7 forks source link

Don't restore window bounds if prev dimensions are out of bounds #86

Closed sergeichestakov closed 1 year ago

sergeichestakov commented 1 year ago

Why

Same as https://github.com/replit/desktop/pull/85 but a different heuristic. We don't want to restore the previous dimensions if they don't fit in the current set of displays anymore

What changed

Don't restore window bounds if prev dimensions are out of bounds

Test plan

Same test plan as above PR but with check that app is in bounds instead of there being the same # of displays

sergeichestakov commented 1 year ago

whoops not sure why my prev commits weren't being pushed in the other branch at first but it seems to be resolved. going to close this in favor of https://github.com/replit/desktop/pull/85 instead.