Browse Source

Fixed a typo in the docs for JUCEApplicationBase::moreThanOneInstanceAllowed() and clarified on which platforms ::anotherInstanceStarted() will be called

tags/2021-05-28
ed 7 years ago
parent
commit
aae372d68c
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      modules/juce_events/messages/juce_ApplicationBase.h

+ 6
- 1
modules/juce_events/messages/juce_ApplicationBase.h View File

@@ -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…
Cancel
Save