From df01c0538f3cbacc077e778967fdc3305f450d76 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 17 Feb 2024 00:10:30 +0100 Subject: [PATCH] Fix condition for enabling/disabling notification about remote sync See https://github.com/Martchus/syncthingtray/issues/232 --- syncthingconnector/syncthingnotifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncthingconnector/syncthingnotifier.cpp b/syncthingconnector/syncthingnotifier.cpp index 2c0f767..ef02bea 100644 --- a/syncthingconnector/syncthingnotifier.cpp +++ b/syncthingconnector/syncthingnotifier.cpp @@ -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; }