1
0
mirror of synced 2025-01-31 12:23:52 +01:00

Disable the file format supported dialog for now.

This commit is contained in:
KillzXGaming 2020-09-11 20:56:54 -04:00
parent 07b53963ac
commit 82d7b3939e

View File

@ -271,18 +271,15 @@ namespace Toolbox
public void OpenFile(string FileName, bool InActiveEditor = false)
{
if (File.Exists(FileName))
SaveRecentFile(FileName);
if (!File.Exists(FileName))
return;
SaveRecentFile(FileName);
object file = STFileLoader.OpenFileFormat(FileName);
if (file != null) //File is supported
LoadFile(file, InActiveEditor);
else
STErrorDialog.Show("File Format not supported!", "File Open");
}
if (file == null) //File might not be supported so return
return;
private void LoadFile(object file, bool InActiveEditor = false)
{
Type objectType = file.GetType();
bool HasEditorActive = false;