소스 검색

Fixed bug where some trigger/action types wouldn't be created

Kenric Nugteren 10 달 전
부모
커밋
9bcba4b98b
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      prs.shared/Grids/EventEditor/Action Editors/ActionEditors.cs
  2. 1 1
      prs.shared/Grids/EventEditor/TriggerEditors.cs

+ 1 - 1
prs.shared/Grids/EventEditor/Action Editors/ActionEditors.cs

@@ -68,7 +68,7 @@ public static class EventActionEditors
         where TDataModel : IEventDataModel
     {
         var editorType = GetActionEditorType(action.GetType());
-        if (editorType is null) return false;
+        if (editorType is null) return true;
 
         var editor = (Activator.CreateInstance(editorType) as IEventActionEditor)!;
         return editor.Edit(action, dataModelDefinition);

+ 1 - 1
prs.shared/Grids/EventEditor/TriggerEditors.cs

@@ -65,7 +65,7 @@ public static class EventTriggerEditors
         where TDataModel : IEventDataModel
     {
         var editorType = GetTriggerEditorType(trigger.GetType());
-        if (editorType is null) return false;
+        if (editorType is null) return true;
 
         var editor = (Activator.CreateInstance(editorType) as IEventTriggerEditor)!;
         return editor.Edit(trigger);