Add notifcation for files not supported

This commit is contained in:
KillzXGaming 2020-09-02 19:02:37 -04:00
parent 40fca105f8
commit e8b4379eb0

View file

@ -275,10 +275,14 @@ namespace Toolbox
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;