Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify last used monitor availability when restoring window position #1176

Merged
merged 1 commit into from
Jan 31, 2019

Conversation

mirka
Copy link
Member

@mirka mirka commented Jan 25, 2019

Closes #592

electron-window-state (the module we are using to persist window position after quit) had not been checking whether a last used external monitor had been disconnected. So if Simplenote was last positioned on an external monitor that is now disconnected, the Simplenote window would be unrecoverable.

To test

I tested this on an actual Windows machine, since I couldn't reproduce the original issue on a Mac.

Note: To reproduce the original issue, your external display must be configured to be on the LEFT of your main display.

  1. Launch the app and move the window to an external display.
  2. Quit the app.
  3. Disconnect the external display.
  4. Relaunch the app.

The app window should be visible on the main screen.

@mirka mirka changed the title [WIP] Verify last used monitor availability when restoring window position Verify last used monitor availability when restoring window position Jan 28, 2019
@mirka mirka requested a review from roundhill January 28, 2019 14:44
Copy link
Contributor

@roundhill roundhill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the appx build on this PR and verified fixed :shipit:

@mirka mirka merged commit 6102526 into master Jan 31, 2019
@mirka mirka deleted the update/electron-window-state branch January 31, 2019 07:48
mirka added a commit that referenced this pull request Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants