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

Manage function breaks the ready-to-show event in electron #73

Open
tolew1 opened this issue Oct 14, 2021 · 1 comment
Open

Manage function breaks the ready-to-show event in electron #73

tolew1 opened this issue Oct 14, 2021 · 1 comment

Comments

@tolew1
Copy link

tolew1 commented Oct 14, 2021

If you are using ready -to-show event because you have a splash screen or something , using the plugin with the mainWindowState.manage(mainWindow); breaks that event and keeps it from firing. Any idea on how to fix this?

@tolew1
Copy link
Author

tolew1 commented Oct 14, 2021

Ok I found a work around or either the right way to do it. Either way it seems to work. If you put it inside the ready-to-show event, it seems to work that way. I'll leave this incase some one runs across the issue.

e.g.

mainWindow.once('ready-to-show', () => {
	   splash.destroy();
           mainWindow.show();
	   mainWindow.focus();
           mainWindowState.manage(mainWindow);
});

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

No branches or pull requests

1 participant