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

fix: only one window at a time during startup. #284

Merged
merged 2 commits into from
Feb 25, 2020
Merged

Conversation

okdistribute
Copy link
Contributor

@okdistribute okdistribute commented Feb 12, 2020

fixes #283

Contributor checklist:

  • My contribution is not related to translations. Please submit translation changes via our Mapeo Crowdin project
  • My commits are in nice logical chunks with good commit messages
  • I have walked through the QA Manual Testing
    Script
    and updated it if necessary.
  • If my changes depend upon an update to a dependency, I have updated the package-lock.json file using npm install --package-lock
  • My changes have been tested with the mobile app.
  • My changes are ready to be shipped to users on Windows, Mac, and Linux

Description

Tested this on my linux laptop.

This bug was introduced with the new window state manager.

index.js Outdated
@@ -282,6 +282,9 @@ function notifyReady (done) {
var IS_TEST = process.env.NODE_ENV === 'test'
if (IS_TEST) win.setSize(1000, 800, false)
if (argv.debug) win.webContents.openDevTools()

win.maximize()
win.setFullScreen(true)
Copy link

Choose a reason for hiding this comment

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

I would avoid to call win.setFullScreen(true)
it sets the app...fullscreen (here on ubuntu) and I don't think is the desired behaviour
maybe win.maximize() is enough

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right good catch! thanks!

@okdistribute okdistribute merged commit c3efcd2 into master Feb 25, 2020
@okdistribute okdistribute deleted the startup-window branch February 25, 2020 21:54
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.

When Mapeo loads, there's a big white screen
2 participants