From 3618caa4e343e454bc101bbba1d3a14aad6a183c Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 29 Jan 2024 17:22:06 -0800 Subject: [PATCH] Retain last batch editor instructions for session Closes #4180 --- PKHeX.WinForms/Subforms/PKM Editors/BatchEditor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PKHeX.WinForms/Subforms/PKM Editors/BatchEditor.cs b/PKHeX.WinForms/Subforms/PKM Editors/BatchEditor.cs index 79317359a..f48f0740d 100644 --- a/PKHeX.WinForms/Subforms/PKM Editors/BatchEditor.cs +++ b/PKHeX.WinForms/Subforms/PKM Editors/BatchEditor.cs @@ -17,6 +17,8 @@ public partial class BatchEditor : Form private Core.BatchEditor editor = new(); private readonly EntityInstructionBuilder UC_Builder; + private static string LastUsedCommands = string.Empty; + public BatchEditor(PKM pk, SaveFile sav) { InitializeComponent(); @@ -32,6 +34,9 @@ public partial class BatchEditor : Form SAV = sav; DragDrop += TabMain_DragDrop; DragEnter += TabMain_DragEnter; + + RTB_Instructions.Text = LastUsedCommands; + Closing += (_, _) => LastUsedCommands = RTB_Instructions.Text; } private void B_Open_Click(object sender, EventArgs e)