Skip to content

Commit 6a0193e

Browse files
committed
Fix version checking code.
1 parent 893d6a3 commit 6a0193e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

SRTPluginManager/MVVM/View/HomeView.xaml.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
using static SRTPluginManager.Core.Utilities;
66
using System;
77
using System.Net.Http;
8-
using System.Threading.Tasks;
9-
using System.Windows;
108
using Newtonsoft.Json.Linq;
11-
using System.IO.Compression;
12-
using System.Linq;
9+
using System.Reflection;
1310

1411
namespace SRTPluginManager.MVVM.View
1512
{
@@ -19,7 +16,7 @@ namespace SRTPluginManager.MVVM.View
1916
public partial class HomeView : UserControl
2017
{
2118
private const string updateJsonUrl = "https://github.com/SpeedrunTooling/SRTPluginManager/releases/download/1.0.0.0U/Update.json";
22-
private const string currentVersion = "1.0.1.1"; // Ensure this matches your actual current version
19+
private static readonly string currentVersion = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion;
2320

2421
public HomeView()
2522
{

0 commit comments

Comments
 (0)