mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
parent
8f64f0bb1c
commit
410ec00848
1 changed files with 4 additions and 3 deletions
|
@ -174,7 +174,7 @@ main(int argc, char *argv[])
|
||||||
SingleApplication::Mode::ExcludeAppVersion |
|
SingleApplication::Mode::ExcludeAppVersion |
|
||||||
SingleApplication::Mode::SecondaryNotification,
|
SingleApplication::Mode::SecondaryNotification,
|
||||||
100,
|
100,
|
||||||
userdata);
|
userdata == "default" ? "" : userdata);
|
||||||
|
|
||||||
QCommandLineParser parser;
|
QCommandLineParser parser;
|
||||||
parser.addHelpOption();
|
parser.addHelpOption();
|
||||||
|
@ -199,8 +199,9 @@ main(int argc, char *argv[])
|
||||||
// This check needs to happen _after_ process(), so that we actually print help for --help when
|
// This check needs to happen _after_ process(), so that we actually print help for --help when
|
||||||
// Nheko is already running.
|
// Nheko is already running.
|
||||||
if (app.isSecondary()) {
|
if (app.isSecondary()) {
|
||||||
nhlog::ui()->info("Sending Matrix URL to main application: {}", matrixUri.toStdString());
|
std::cout << "Sending Matrix URL to main application: " << matrixUri.toStdString()
|
||||||
// open uri in main instance
|
<< std::endl;
|
||||||
|
// open uri in main instance
|
||||||
app.sendMessage(matrixUri.toUtf8());
|
app.sendMessage(matrixUri.toUtf8());
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue