From e3cdbf50adc8b2a82934a8d666bc290ec73379b5 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Mon, 30 Sep 2019 18:06:41 -0400 Subject: [PATCH] Fix updating editor for bflim if switched and edited in archive editor --- File_Format_Library/FileFormats/Texture/BFLIM.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/File_Format_Library/FileFormats/Texture/BFLIM.cs b/File_Format_Library/FileFormats/Texture/BFLIM.cs index 77616bc1..0a5223d9 100644 --- a/File_Format_Library/FileFormats/Texture/BFLIM.cs +++ b/File_Format_Library/FileFormats/Texture/BFLIM.cs @@ -72,14 +72,13 @@ namespace FirstPlugin } } + private ImageEditorBase form; public ImageEditorBase OpenForm() { form = new ImageEditorBase(); return form; } - private ImageEditorBase form; - public void UpdateForm() { UpdateForm(form); @@ -87,6 +86,7 @@ namespace FirstPlugin public void FillEditor(UserControl control) { + form = (ImageEditorBase)control; UpdateForm((ImageEditorBase)control); } @@ -112,6 +112,8 @@ namespace FirstPlugin form.AddFileContextEvent("Replace", Replace); form.LoadProperties(prop); form.LoadImage(this); + + Console.WriteLine("UpdateForm LoadImage"); } }