mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ArchiveFileInfo.FileFormat = File;
|
||||||
SetEditorForm(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)
|
private bool CheckActiveType(Type type)
|
||||||
|
@ -162,6 +159,8 @@ namespace Toolbox.Library.Forms
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
editor.FillEditor(ArchiveFileInfo.FileData);
|
editor.FillEditor(ArchiveFileInfo.FileData);
|
||||||
|
|
||||||
|
ArchiveFileInfo.FileFormat = File;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void NotifyFormatSwitched()
|
private void NotifyFormatSwitched()
|
||||||
|
|
Loading…
Reference in a new issue