Skip to content

Commit

Permalink
Update name of configuration property to match
Browse files Browse the repository at this point in the history
  • Loading branch information
ljfio committed Apr 10, 2024
1 parent 4379e8e commit 281b52c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion uSync.BackOffice/Configuration/uSyncSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public class uSyncSettings
/// use this if you are comfortable with the risks
/// </remarks>
[DefaultValue("false")]
public bool DisableNotificationSuppression { get; set; } = false;
public bool EnableNotificationSuppression { get; set; } = false;

/// <summary>
/// trigger all the notifications in a background thread,
Expand Down
6 changes: 3 additions & 3 deletions uSync.BackOffice/Extensions/ScopeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ namespace uSync.BackOffice.Extensions;
internal static class ScopeExtensions
{
public static IDisposable SuppressScopeByConfig(this ICoreScope scope, uSyncConfigService configService)
=> configService.Settings.DisableNotificationSuppression
? new DummyDisposable()
: scope.Notifications.Suppress();
=> configService.Settings.EnableNotificationSuppression
? scope.Notifications.Suppress()
: new DummyDisposable();


public static ICoreScope CreateNotificationScope(
Expand Down

0 comments on commit 281b52c

Please sign in to comment.