mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-07 02:45: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
|
||||
{
|
||||
private string currentVersion = "v2.06-release";
|
||||
private string currentVersion = "v2.06-stable";
|
||||
private string latestVersion;
|
||||
|
||||
public UpdatePage()
|
||||
|
@ -86,8 +86,8 @@ namespace AutoTrackR2
|
|||
|
||||
private bool IsNewVersionAvailable(string currentVersion, string latestVersion)
|
||||
{
|
||||
// Compare version strings (you can implement more complex version parsing logic if needed)
|
||||
return string.Compare(currentVersion, latestVersion, StringComparison.Ordinal) < 0;
|
||||
// Return true if the versions are different
|
||||
return !currentVersion.Equals(latestVersion, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
private async void InstallButton_Click(object sender, RoutedEventArgs e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue