Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions connector/syncthingnotifier.cpp
Original file line number Diff line number Diff line change
@@ -176,6 +176,11 @@ void SyncthingNotifier::emitSyncComplete(ChronoUtilities::DateTime when, const S
VAR_UNUSED(when)
VAR_UNUSED(index)

// discard event for paused directories/devices
if (dir.paused || (remoteDev && remoteDev->paused)) {
return;
}

// discard event if not enabled
if (!m_initialized || (!remoteDev && (m_enabledNotifications & SyncthingHighLevelNotification::LocalSyncComplete) == 0)
|| (remoteDev && (m_enabledNotifications & SyncthingHighLevelNotification::LocalSyncComplete) == 0)) {

0 comments on commit 68f5565

Please sign in to comment.