mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-18 15:05:30 +00:00
Fix versioning and update button logic
This commit is contained in:
parent
7a995015e7
commit
693904e53c
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ namespace AutoTrackR2
|
||||||
{
|
{
|
||||||
public partial class UpdatePage : UserControl
|
public partial class UpdatePage : UserControl
|
||||||
{
|
{
|
||||||
private string currentVersion = "v2.06-release";
|
private string currentVersion = "v2.06-stable";
|
||||||
private string latestVersion;
|
private string latestVersion;
|
||||||
|
|
||||||
public UpdatePage()
|
public UpdatePage()
|
||||||
|
@ -86,8 +86,8 @@ namespace AutoTrackR2
|
||||||
|
|
||||||
private bool IsNewVersionAvailable(string currentVersion, string latestVersion)
|
private bool IsNewVersionAvailable(string currentVersion, string latestVersion)
|
||||||
{
|
{
|
||||||
// Compare version strings (you can implement more complex version parsing logic if needed)
|
// Return true if the versions are different
|
||||||
return string.Compare(currentVersion, latestVersion, StringComparison.Ordinal) < 0;
|
return !currentVersion.Equals(latestVersion, StringComparison.Ordinal);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void InstallButton_Click(object sender, RoutedEventArgs e)
|
private async void InstallButton_Click(object sender, RoutedEventArgs e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue