mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Add notifcation for files not supported
This commit is contained in:
parent
40fca105f8
commit
e8b4379eb0
1 changed files with 7 additions and 3 deletions
|
@ -275,10 +275,14 @@ namespace Toolbox
|
||||||
SaveRecentFile(FileName);
|
SaveRecentFile(FileName);
|
||||||
|
|
||||||
object file = STFileLoader.OpenFileFormat(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
|
private void LoadFile(object file, bool InActiveEditor = false)
|
||||||
return;
|
{
|
||||||
|
|
||||||
Type objectType = file.GetType();
|
Type objectType = file.GetType();
|
||||||
|
|
||||||
bool HasEditorActive = false;
|
bool HasEditorActive = false;
|
||||||
|
|
Loading…
Reference in a new issue