Disable the file format supported dialog for now.
This commit is contained in:
parent
07b53963ac
commit
82d7b3939e
@ -271,18 +271,15 @@ namespace Toolbox
|
|||||||
|
|
||||||
public void OpenFile(string FileName, bool InActiveEditor = false)
|
public void OpenFile(string FileName, bool InActiveEditor = false)
|
||||||
{
|
{
|
||||||
if (File.Exists(FileName))
|
if (!File.Exists(FileName))
|
||||||
SaveRecentFile(FileName);
|
return;
|
||||||
|
|
||||||
|
SaveRecentFile(FileName);
|
||||||
|
|
||||||
object file = STFileLoader.OpenFileFormat(FileName);
|
object file = STFileLoader.OpenFileFormat(FileName);
|
||||||
if (file != null) //File is supported
|
if (file == null) //File might not be supported so return
|
||||||
LoadFile(file, InActiveEditor);
|
return;
|
||||||
else
|
|
||||||
STErrorDialog.Show("File Format not supported!", "File Open");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LoadFile(object file, bool InActiveEditor = false)
|
|
||||||
{
|
|
||||||
Type objectType = file.GetType();
|
Type objectType = file.GetType();
|
||||||
|
|
||||||
bool HasEditorActive = false;
|
bool HasEditorActive = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user