diff --git a/Patches/EditBuildScreenPatch.cs b/Patches/EditBuildScreenPatch.cs index f6ff868..edaeaac 100644 --- a/Patches/EditBuildScreenPatch.cs +++ b/Patches/EditBuildScreenPatch.cs @@ -12,6 +12,12 @@ namespace UIFixes { public static bool MoveForward; + public static void Enable() + { + new CloseScreenInterruptionPatch().Enable(); + new ConfirmDiscardPatch().Enable(); + } + public class CloseScreenInterruptionPatch : ModulePatch { protected override MethodBase GetTargetMethod() diff --git a/Plugin.cs b/Plugin.cs index e449943..41a5abd 100644 --- a/Plugin.cs +++ b/Plugin.cs @@ -9,8 +9,7 @@ namespace UIFixes { Settings.Init(Config); - new EditBuildScreenPatch.CloseScreenInterruptionPatch().Enable(); - new EditBuildScreenPatch.ConfirmDiscardPatch().Enable(); + EditBuildScreenPatch.Enable(); new TransferConfirmPatch().Enable(); new MailReceiveAllPatch().Enable(); ScrollPatches.Enable();