diff --git a/UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml b/UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml index 92fb721..79d1666 100644 --- a/UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml +++ b/UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml @@ -65,7 +65,15 @@ - + + +

Fix:

+
    +
  • Fixed the update button being greyed out
  • +
+
+
+

Fix:

    diff --git a/UnitystationLauncher/Constants/AppInfo.cs b/UnitystationLauncher/Constants/AppInfo.cs index 4044252..3521b1f 100644 --- a/UnitystationLauncher/Constants/AppInfo.cs +++ b/UnitystationLauncher/Constants/AppInfo.cs @@ -4,5 +4,5 @@ public static class AppInfo { // Whenever you change the currentBuild here, please also update the one in // UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml - public const int CurrentBuild = 935; + public const int CurrentBuild = 936; } \ No newline at end of file diff --git a/UnitystationLauncher/ViewModels/HubUpdateViewModel.cs b/UnitystationLauncher/ViewModels/HubUpdateViewModel.cs index ff0038d..b7c088d 100644 --- a/UnitystationLauncher/ViewModels/HubUpdateViewModel.cs +++ b/UnitystationLauncher/ViewModels/HubUpdateViewModel.cs @@ -24,6 +24,7 @@ public string? UpdateMessage set => this.RaiseAndSetIfChanged(ref _updateMessage, value); } + public ReactiveCommand Update { get; } public ReactiveCommand Skip { get; } public ReactiveCommand Ignore { get; } @@ -35,11 +36,15 @@ public string? UpdateMessage private readonly IHubService _hubService; private readonly IPreferencesService _preferencesService; - public HubUpdateViewModel(Lazy launcherVm, IHubService hubService, IPreferencesService preferencesService) + public HubUpdateViewModel(Lazy launcherVm, IHubService hubService, + IPreferencesService preferencesService) { _launcherVm = launcherVm; _hubService = hubService; _preferencesService = preferencesService; + + // Initialize ReactiveCommands + Update = ReactiveCommand.Create(PerformUpdate); Ignore = ReactiveCommand.Create(IgnoreUpdate); Skip = ReactiveCommand.Create(SkipUpdate); @@ -58,7 +63,7 @@ private async Task GetUpdateVersion() return hubClientConfig?.BuildNumber ?? 0; } - private void Update() + private void PerformUpdate() { ProcessStartInfo psi = new() {