# HG changeset patch # User Stephane Lenclud # Date 1472773088 -7200 # Node ID a601b377a3ebe66b0164cd3f5b0ad705d2b6aa02 # Parent b11d7ebbdc7f6356af97329e5df56b23402018f8 Event trigger by name now won't trigger disabled events. diff -r b11d7ebbdc7f -r a601b377a3eb SharpLibEar/Manager.cs --- a/SharpLibEar/Manager.cs Wed Aug 31 23:59:00 2016 +0200 +++ b/SharpLibEar/Manager.cs Fri Sep 02 01:38:08 2016 +0200 @@ -85,7 +85,7 @@ // Only trigger events matching the desired type // Doing some safety checks as well to prevent crashing if name was left null for some reason // This was the case when loading existing settings after event Name was introduced - foreach (Event e in Events.Where(e => !string.IsNullOrEmpty(e.Name) && aName.Equals(e.Name))) + foreach (Event e in Events.Where(e => !string.IsNullOrEmpty(e.Name) && e.Enabled && aName.Equals(e.Name))) { await e.Trigger(); }