From fd6c296ff6c3f22c7156df0174f11067e0e9dc7a Mon Sep 17 00:00:00 2001 From: Roderick Griffioen Date: Fri, 20 Jan 2023 20:36:11 +0100 Subject: [PATCH] Update check happens first thing after startup --- UI/MainForm.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/UI/MainForm.cs b/UI/MainForm.cs index 9f7a5adcc..26055303b 100644 --- a/UI/MainForm.cs +++ b/UI/MainForm.cs @@ -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(); @@ -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); @@ -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