mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Adjust main form loading a bit
This commit is contained in:
parent
1978197afb
commit
dfb41d0d80
1 changed files with 12 additions and 12 deletions
|
@ -48,23 +48,12 @@ namespace Toolbox
|
||||||
|
|
||||||
public MainForm()
|
public MainForm()
|
||||||
{
|
{
|
||||||
FormThemes.ActivePreset = FormThemes.Preset.Dark;
|
|
||||||
|
|
||||||
Runtime.MainForm = this;
|
|
||||||
LoadConfig();
|
|
||||||
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
compressionToolStripMenuItem.DropDownItems.AddRange(CompressionMenus.GetMenuItems().ToArray());
|
|
||||||
|
|
||||||
//Redo setting this since designer keeps resetting this
|
|
||||||
tabForms.myBackColor = FormThemes.BaseTheme.FormBackColor;
|
|
||||||
|
|
||||||
OnMdiWindowClosed();
|
|
||||||
ResetMenus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Reload()
|
public void Reload()
|
||||||
{
|
{
|
||||||
|
LoadConfig();
|
||||||
SupportedFormats = FileManager.GetFileFormats();
|
SupportedFormats = FileManager.GetFileFormats();
|
||||||
FileMenuExtensions = FileManager.GetMenuExtensions();
|
FileMenuExtensions = FileManager.GetMenuExtensions();
|
||||||
}
|
}
|
||||||
|
@ -74,6 +63,17 @@ namespace Toolbox
|
||||||
|
|
||||||
private void Form1_Load(object sender, EventArgs e)
|
private void Form1_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
FormThemes.ActivePreset = FormThemes.Preset.Dark;
|
||||||
|
|
||||||
|
Runtime.MainForm = this;
|
||||||
|
compressionToolStripMenuItem.DropDownItems.AddRange(CompressionMenus.GetMenuItems().ToArray());
|
||||||
|
|
||||||
|
//Redo setting this since designer keeps resetting this
|
||||||
|
tabForms.myBackColor = FormThemes.BaseTheme.FormBackColor;
|
||||||
|
|
||||||
|
OnMdiWindowClosed();
|
||||||
|
ResetMenus();
|
||||||
|
|
||||||
bool HasVersionFile = true;
|
bool HasVersionFile = true;
|
||||||
VersionCheck version = new VersionCheck(HasVersionFile);
|
VersionCheck version = new VersionCheck(HasVersionFile);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue