Hide macos-only setting on non-macos

This commit is contained in:
Albert Vaca Cintora 2023-06-07 18:25:34 +02:00
parent e3898eb7d3
commit 5a93a48973

View file

@ -133,9 +133,11 @@ int main(int argc, char *argv[])
QCommandLineParser parser; QCommandLineParser parser;
QCommandLineOption replaceOption({QStringLiteral("replace")}, i18n("Replace an existing instance")); QCommandLineOption replaceOption({QStringLiteral("replace")}, i18n("Replace an existing instance"));
parser.addOption(replaceOption); parser.addOption(replaceOption);
#ifdef Q_OS_MAC
QCommandLineOption macosPrivateDBusOption({QStringLiteral("use-private-dbus")}, QCommandLineOption macosPrivateDBusOption({QStringLiteral("use-private-dbus")},
i18n("Launch a private D-Bus daemon with kdeconnectd (macOS test-purpose only)")); i18n("Launch a private D-Bus daemon with kdeconnectd (macOS test-purpose only)"));
parser.addOption(macosPrivateDBusOption); parser.addOption(macosPrivateDBusOption);
#endif
aboutData.setupCommandLine(&parser); aboutData.setupCommandLine(&parser);
parser.process(app); parser.process(app);