Check formats on method to load proper menus
This commit is contained in:
parent
65b34e1e89
commit
589198eb3a
Binary file not shown.
@ -32,6 +32,16 @@ namespace Toolbox
|
||||
form.Text = CheckTabDupes(form.Text);
|
||||
form.MdiParent = this;
|
||||
form.Show();
|
||||
|
||||
IFileFormat activeFile;
|
||||
|
||||
if (form is ObjectEditor)
|
||||
activeFile = ((ObjectEditor)form).GetActiveFile();
|
||||
else
|
||||
activeFile = GetActiveIFileFormat();
|
||||
|
||||
if (activeFile != null)
|
||||
SetFormatSettings(activeFile);
|
||||
}
|
||||
|
||||
public MainForm()
|
||||
|
Loading…
Reference in New Issue
Block a user