mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed a typo in the docs for JUCEApplicationBase::moreThanOneInstanceAllowed() and clarified on which platforms ::anotherInstanceStarted() will be called
This commit is contained in:
parent
3458d11078
commit
aae372d68c
1 changed files with 6 additions and 1 deletions
|
|
@ -107,9 +107,11 @@ public:
|
|||
If your application class returns true for this, more than one instance is
|
||||
permitted to run (except on the Mac where this isn't possible).
|
||||
|
||||
If it's false, the second instance won't start, but it you will still get a
|
||||
If it's false, the second instance won't start, but you will still get a
|
||||
callback to anotherInstanceStarted() to tell you about this - which
|
||||
gives you a chance to react to what the user was trying to do.
|
||||
|
||||
@see anotherInstanceStarted
|
||||
*/
|
||||
virtual bool moreThanOneInstanceAllowed() = 0;
|
||||
|
||||
|
|
@ -151,6 +153,9 @@ public:
|
|||
/** Indicates that the user has tried to start up another instance of the app.
|
||||
|
||||
This will get called even if moreThanOneInstanceAllowed() is false.
|
||||
It is currently only implemented on Windows and Mac.
|
||||
|
||||
@see moreThanOneInstanceAllowed
|
||||
*/
|
||||
virtual void anotherInstanceStarted (const String& commandLine) = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue