Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Commit 0264f66

Browse files
committed
Test6
1 parent f68ea12 commit 0264f66

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Optimizer/MainForm.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private void CheckForUpdate(bool silentCheck = false)
9797

9898
if (!string.IsNullOrEmpty(latestVersion))
9999
{
100-
if (float.Parse(latestVersion, CultureInfo.CreateSpecificCulture("en-US")) > Program.GetCurrentVersion())
100+
if (float.Parse(latestVersion) > Program.GetCurrentVersion())
101101
{
102102
// show UPDATE AVAILABLE on app launch
103103
if (silentCheck)
@@ -150,7 +150,7 @@ private void CheckForUpdate(bool silentCheck = false)
150150
}
151151
}
152152
}
153-
else if (float.Parse(latestVersion, CultureInfo.CreateSpecificCulture("en-US")) == Program.GetCurrentVersion())
153+
else if (float.Parse(latestVersion) == Program.GetCurrentVersion())
154154
{
155155
if (!silentCheck) MessageBox.Show(_noNewVersionMessage, "No update available", MessageBoxButtons.OK, MessageBoxIcon.Information);
156156
}
@@ -355,6 +355,9 @@ public MainForm()
355355

356356
CheckForIllegalCrossThreadCalls = false;
357357

358+
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
359+
CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo("en-US");
360+
358361
// theming
359362
Options.ApplyTheme(this);
360363
launcherMenu.Renderer = new ToolStripRendererMaterial();

0 commit comments

Comments
 (0)