Skip to content

Commit

Permalink
Fix #236 cancel = true should stop event processing.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Jul 28, 2021
1 parent 8074dde commit a2155d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uSync8.BackOffice/Services/uSyncService_Events.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static bool FireExportingItem(object item)
{
var e = new uSyncItemEventArgs<object> { Item = item };
ExportingItem?.Invoke(e);
return e.Cancel;
return !e.Cancel;
}

return true;
Expand All @@ -139,7 +139,7 @@ private static bool FireItemStartingEvent(uSyncItemEventHandler eventHandler, XE
{
var e = new uSyncItemEventArgs<XElement> { Item = node };
eventHandler?.Invoke(e);
return e.Cancel;
return !e.Cancel;
}

return true;
Expand Down

0 comments on commit a2155d3

Please sign in to comment.