1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Update image editor properly in archive previewer

This commit is contained in:
KillzXGaming 2019-06-12 17:55:03 -04:00
parent 0384191687
commit 26de867fa9
5 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -230,6 +230,7 @@ namespace Switch_Toolbox.Library.Forms
Texture.Replace(ofd.FileName); Texture.Replace(ofd.FileName);
ReloadTexture(Texture, item); ReloadTexture(Texture, item);
LoadImageEditor((STGenericTexture)item.Tag, ((STGenericTexture)item.Tag).GenericProperties);
} }
} }
@ -267,8 +268,7 @@ namespace Switch_Toolbox.Library.Forms
ReloadTexture(e.ReplacedTexture, ActiveItem); ReloadTexture(e.ReplacedTexture, ActiveItem);
listViewCustom1.Refresh(); listViewCustom1.Refresh();
if (imageEditorForm != null) LoadImageEditor((STGenericTexture)ActiveItem.Tag, ((STGenericTexture)ActiveItem.Tag).GenericProperties);
imageEditorForm.LoadImage((STGenericTexture)ActiveItem.Tag);
} }
private void listViewCustom1_DoubleClick(object sender, EventArgs e) private void listViewCustom1_DoubleClick(object sender, EventArgs e)