Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
using System.Threading;

namespace MasterOfWebM
{
Expand Down Expand Up @@ -177,13 +178,24 @@ public static bool checkFFmpegFontConfig()
}
}
}
/// <summary>
/// Performs new version check in new thread for faster startup.
/// </summary>
public static void checkUpdateInNewThread()
{
new Thread(() =>
{
Thread.CurrentThread.IsBackground = false;
checkUpdate();
}).Start();
}

/// <summary>
/// Verifies the version of the program.
/// It will prompt the user if the program is
/// outdated.
/// </summary>
public static void checkUpdate()
private static void checkUpdate()
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion formMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down