1
0
mirror of synced 2024-11-12 10:10:50 +01:00

Check formats on method to load proper menus

This commit is contained in:
KillzXGaming 2019-04-21 14:54:48 -04:00
parent 65b34e1e89
commit 589198eb3a
2 changed files with 10 additions and 0 deletions

Binary file not shown.

View File

@ -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()