Skip to content

Commit

Permalink
Update MainWindow.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
TorniX0 authored Nov 29, 2021
1 parent 1f2dd4f commit 3b0ad6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public partial class MainWindow : Form
#pragma warning disable CS8602 // Dereference of a possibly null reference.

private readonly static bool emptyBuildVersion = Assembly.GetEntryAssembly().GetName().Version.Build == -1;
private readonly string ProgramVersion = emptyBuildVersion ? Assembly.GetEntryAssembly().GetName().Version.Build.ToString() : "1.0.2.0";
private readonly string ProgramVersion = emptyBuildVersion ? Assembly.GetEntryAssembly().GetName().Version.Build.ToString() : "1.0.2.1";

#pragma warning restore CS8602 // Dereference of a possibly null reference.

Expand Down Expand Up @@ -121,7 +121,7 @@ public MainWindow()

private void timerResolutionBox_TextChanged(object sender, EventArgs e)
{
if (timerResolutionBox.Text != string.Empty)
if (timerResolutionBox.Text != string.Empty && timerResolutionBox.Text.Last() != '.')
{
warningLabel.Visible = (double.Parse(timerResolutionBox.Text) > 15.6250d) ? true : false;
}
Expand Down

0 comments on commit 3b0ad6f

Please sign in to comment.