make sure the fallback works
This commit is contained in:
parent
9f3cdc6f41
commit
f67d4a5201
|
@ -93,15 +93,15 @@ bool SnoreCorePrivate::setBackendIfAvailible(const QString &backend)
|
|||
if (m_notificationBackend) {
|
||||
m_notificationBackend->disable();
|
||||
}
|
||||
m_notificationBackend = b;
|
||||
m_notificationBackend->enable();
|
||||
q->setSettingsValue(QLatin1String("PrimaryBackend"), backend, LOCAL_SETTING);
|
||||
|
||||
connect(b, &SnoreBackend::loadedStateChanged, [this, b](bool initialized) {
|
||||
if (!initialized) {
|
||||
slotInitPrimaryNotificationBackend();
|
||||
}
|
||||
});
|
||||
|
||||
m_notificationBackend = b;
|
||||
m_notificationBackend->enable();
|
||||
q->setSettingsValue(QLatin1String("PrimaryBackend"), backend, LOCAL_SETTING);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue