Skip to content

Commit

Permalink
Update check happens first thing after startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Pitj3 authored Jan 20, 2023
1 parent 07fd7dc commit fd6c296
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions UI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ private void MainForm_Load(object sender, EventArgs e)

private void MainForm_Shown(object sender, EventArgs e)
{
// Check for updates before loading anything else
#if (!DEBUG)
AutoUpdateChecker.CheckForUpdate(false, true);
#endif

if (Properties.Settings.Default.Started == 0)
{
OnFirstStart();
Expand All @@ -132,6 +137,7 @@ private void MainForm_Shown(object sender, EventArgs e)

Properties.Settings.Default.Started = Properties.Settings.Default.Started + 1;


// this is everything that used to be directly in the constructor
inputsTabControl.DrawItem += new DrawItemEventHandler(tabControl1_DrawItem);

Expand Down Expand Up @@ -317,9 +323,6 @@ void ExecManager_OnModuleLookupFinished(object sender, EventArgs e)
runToolStripButton.Enabled = RunIsAvailable();
runTestToolStripButton.Enabled = TestRunIsAvailable();

#if (!DEBUG)
AutoUpdateChecker.CheckForUpdate(false, true);
#endif
CheckForWasmModuleUpdate();

// Track config loaded event
Expand Down

0 comments on commit fd6c296

Please sign in to comment.