more lightwel control listener
This commit is contained in:
@@ -19,7 +19,12 @@ public static class PluginFeatureControllerExtensions
|
||||
|
||||
public static IControlListener ApplyControlManager(this PluginFeatureController @this, string featureType, Control control, bool recursive, bool autoTrack, PluginFunctionParameter? parameter)
|
||||
{
|
||||
var manager = new ControlListener(@this.Features.Get(featureType).OfType<ControlListenerFeature>(), control, recursive);
|
||||
var features = @this.Features.Get(featureType).OfType<ControlListenerFeature>();
|
||||
|
||||
if (!features.Any())
|
||||
return new ControlListenerDummy([], control, recursive);
|
||||
|
||||
var manager = new ControlListener(features, control, recursive);
|
||||
|
||||
if (autoTrack)
|
||||
manager.Track();
|
||||
|
||||
Reference in New Issue
Block a user