-
Notifications
You must be signed in to change notification settings - Fork 15k
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
Documentation unclear for app.makeSingleInstance #4478
Comments
@apoco The return value of the callback used to do something but now afaik does nothing particularly useful. Just return |
Will returning nothing work just as well? The more I looked into it, the more it looked like it had no effect, but I'm not completely clear on that still. If it truly does nothing, I humbly propose #4480 |
Closed with #4480. |
|
@thinkdj i have done exactly same, var iShouldQuit = app.makeSingleInstance(function(commandLine, workingDirectory) { But when one instance of app is open it do not open new intsance(which is correct),but is not restoring the current instance(which is Minimized) |
@nidhir-systango Your code looks correct but I must say again 👍 GitHub issues are for feature requests and bug reports, questions about using Electron should be directed to the community or to the Slack Channel. You are much more likely to get an answer on Slack or in the Discussion Forums than posting on a several month old closed issue. |
Just run into this issue when trying to make
|
One thing is unclear in the documentation for
app.makeSingleInstance
. The docs say that calling that returns true or false indicating whether the application should continue launching, but it doesn't mention anything about the return value of the callback. The sample shows the callback returningtrue
, but it's not clear whether this return value has a causal affect on the return value ofmakeSingleInstance
. And I've seen other code samples where nothing is returned from the callback at all.Should the callback to
makeSingleInstance
return something? If so, what does the return value mean? Should the docs be updated to make this clearer?The text was updated successfully, but these errors were encountered: