mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 08:35:54 +00:00
build fix
This commit is contained in:
parent
c966c0b12e
commit
641ed4dbb6
@ -49,7 +49,7 @@ int main(int argc, char *argv[])
|
||||
SnoreCore core;
|
||||
|
||||
core.loadPlugins(SnorePlugin::BACKEND | SnorePlugin::SECONDARY_BACKEND);
|
||||
if (parser.isSet(backend) ? !core.setPrimaryNotificationBackend(parser.value(backend)) : !core.setPrimaryNotificationBackend()) {
|
||||
if (parser.isSet(backend) && !core.setPrimaryNotificationBackend(parser.value(backend))) {
|
||||
std::cerr << "Failed to set backend: " << qPrintable(parser.value(backend)) << " avalible backends: " << qPrintable(core.pluginNames(SnorePlugin::BACKEND).join(", ")) << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user