Fix updating editor for bflim if switched and edited in archive editor

This commit is contained in:
KillzXGaming 2019-09-30 18:06:41 -04:00
parent ccbe9a0e8d
commit e3cdbf50ad

View file

@ -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");
}
}