Fix condition for enabling/disabling notification about remote sync

See https://github.com/Martchus/syncthingtray/issues/232
This commit is contained in:
Martchus 2024-02-17 00:10:30 +01:00
parent f4aa2b22ce
commit df01c0538f
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ void SyncthingNotifier::emitSyncComplete(CppUtilities::DateTime when, const Sync
// discard event if not enabled
if (!m_initialized || (!remoteDev && (m_enabledNotifications & SyncthingHighLevelNotification::LocalSyncComplete) == 0)
|| (remoteDev && (m_enabledNotifications & SyncthingHighLevelNotification::LocalSyncComplete) == 0)) {
|| (remoteDev && (m_enabledNotifications & SyncthingHighLevelNotification::RemoteSyncComplete) == 0)) {
return;
}