diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2020-12-10 19:18:00 -0500 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2020-12-16 22:17:24 -0500 |
commit | f236032cf988950c12ebd8ff5e3cd3f9778ea55a (patch) | |
tree | 1025557f8196116bf4c262c5ec4eecaf5707094e /README.md | |
parent | Update CHANGELOG.md (diff) | |
download | singleapplication-f236032cf988950c12ebd8ff5e3cd3f9778ea55a.tar.xz |
Allow adding unique userdata to instances
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -154,7 +154,7 @@ API ### Members ```cpp -SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 100 ) +SingleApplication::SingleApplication( int &argc, char *argv[], bool allowSecondary = false, Options options = Mode::User, int timeout = 100, QString userData = QString() ) ``` Depending on whether `allowSecondary` is set, this constructor may terminate @@ -163,7 +163,7 @@ can be specified to set whether the SingleApplication block should work user-wide or system-wide. Additionally the `Mode::SecondaryNotification` may be used to notify the primary instance whenever a secondary instance had been started (disabled by default). `timeout` specifies the maximum time in -milliseconds to wait for blocking operations. +milliseconds to wait for blocking operations. Setting `userData` provides additional data that will isolate this instance from other instances that do not have the same (or any) user data set. *__Note:__ `argc` and `argv` may be changed as Qt removes arguments that it recognizes.* |