fix inverted logic
This commit is contained in:
@@ -40,7 +40,7 @@ public abstract class PluginModule<TPluginModuleUI> : PluginModuleBase where TPl
|
|||||||
{
|
{
|
||||||
object? ui = default;
|
object? ui = default;
|
||||||
|
|
||||||
if (!OnPreExecute(@params, ref ui))
|
if (OnPreExecute(@params, ref ui))
|
||||||
ui = CreateNewUI(@params);
|
ui = CreateNewUI(@params);
|
||||||
|
|
||||||
OnPostExecute(@params, ref ui);
|
OnPostExecute(@params, ref ui);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public abstract class PluginFunction : PluginFeature
|
|||||||
{
|
{
|
||||||
object? result = default;
|
object? result = default;
|
||||||
|
|
||||||
if (!OnPreExecute(@params, ref result))
|
if (OnPreExecute(@params, ref result))
|
||||||
result = ExecuteFunction(@params);
|
result = ExecuteFunction(@params);
|
||||||
|
|
||||||
OnPostExecute(@params, ref result);
|
OnPostExecute(@params, ref result);
|
||||||
|
|||||||
Reference in New Issue
Block a user