diff --git a/Helper.cs b/Helper.cs
index 495b590..37d3952 100644
--- a/Helper.cs
+++ b/Helper.cs
@@ -8,6 +8,7 @@
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
+using System.Threading;
namespace MasterOfWebM
{
@@ -177,13 +178,24 @@ public static bool checkFFmpegFontConfig()
}
}
}
+ ///
+ /// Performs new version check in new thread for faster startup.
+ ///
+ public static void checkUpdateInNewThread()
+ {
+ new Thread(() =>
+ {
+ Thread.CurrentThread.IsBackground = false;
+ checkUpdate();
+ }).Start();
+ }
///
/// Verifies the version of the program.
/// It will prompt the user if the program is
/// outdated.
///
- public static void checkUpdate()
+ private static void checkUpdate()
{
try
{
diff --git a/formMain.cs b/formMain.cs
index e64c54c..444c145 100644
--- a/formMain.cs
+++ b/formMain.cs
@@ -373,7 +373,7 @@ private void formMain_Load(object sender, EventArgs e)
btnConvert.Enabled = false;
}
- Helper.checkUpdate();
+ Helper.checkUpdateInNewThread();
}
// Handles when the user focuses txtCrop