Set the file format instance on editor load for saving back
This commit is contained in:
parent
1a420f65a3
commit
043983fdad
@ -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…
x
Reference in New Issue
Block a user