mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Set the file format instance on editor load for saving back
This commit is contained in:
parent
1a420f65a3
commit
043983fdad
1 changed files with 3 additions and 4 deletions
|
@ -89,11 +89,8 @@ namespace Toolbox.Library.Forms
|
|||
return;
|
||||
}
|
||||
|
||||
ArchiveFileInfo.FileFormat = File;
|
||||
SetEditorForm(File);
|
||||
|
||||
//If the format isn't active we can just dispose it
|
||||
if (ArchiveFileInfo.FileFormat == null)
|
||||
File.Unload();
|
||||
}
|
||||
|
||||
private bool CheckActiveType(Type type)
|
||||
|
@ -162,6 +159,8 @@ namespace Toolbox.Library.Forms
|
|||
}
|
||||
else
|
||||
editor.FillEditor(ArchiveFileInfo.FileData);
|
||||
|
||||
ArchiveFileInfo.FileFormat = File;
|
||||
}
|
||||
|
||||
private void NotifyFormatSwitched()
|
||||
|
|
Loading…
Reference in a new issue