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

2 windows open #9

Closed
andrestc18 opened this issue Oct 3, 2018 · 4 comments
Closed

2 windows open #9

andrestc18 opened this issue Oct 3, 2018 · 4 comments

Comments

@andrestc18
Copy link

Hello, first I congratulate you for that excellent plug-in for electron, I wanted to ask you every time I generated the npm start or I generated the app with electron packager and I open the program two windows exit exactly the same with my program.
In the cmd there are two server runs, it's like if you hit it twice, which I do not do.

@aj-techsoul
Copy link
Owner

aj-techsoul commented Oct 4, 2018 via email

@juppwerner
Copy link

Hi,

can it be that this is due to two places where app.on('ready', createWindow) appears in the provided main.js?

I removed the second line (arround line 116) and now thereis only one window.

Regards
Joachim

@aj-techsoul
Copy link
Owner

Yes, you are right but one window should open for setting up PHP Environment which is setenv.bat in windows.

@aj-techsoul
Copy link
Owner

I have did the changes you said, now only one window coming. so now i am closing

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

3 participants