mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-30 00:10:36 +00:00
Fix updating editor for bflim if switched and edited in archive editor
This commit is contained in:
parent
ccbe9a0e8d
commit
e3cdbf50ad
1 changed files with 4 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue