Skip to content

Commit bde7857

Browse files
Bod9001corp-0
andauthored
fixes update button and bump (#234)
* fixes download button and bump * Update UnitystationLauncher/ViewModels/HubUpdateViewModel.cs Co-authored-by: Gilles <43683714+corp-0@users.noreply.github.com> * Update UnitystationLauncher/ViewModels/HubUpdateViewModel.cs Co-authored-by: Gilles <43683714+corp-0@users.noreply.github.com> --------- Co-authored-by: Gilles <43683714+corp-0@users.noreply.github.com>
1 parent ab669ca commit bde7857

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,15 @@
6565
</screenshots>
6666

6767
<releases>
68-
<release version="935" date="2024-12-14">
68+
<release version="936" date="2024-12-13">
69+
<description>
70+
<p>Fix:</p>
71+
<ul>
72+
<li>Fixed the update button being greyed out</li>
73+
</ul>
74+
</description>
75+
</release>
76+
<release version="935" date="2024-12-13">
6977
<description>
7078
<p>Fix:</p>
7179
<ul>

UnitystationLauncher/Constants/AppInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ public static class AppInfo
44
{
55
// Whenever you change the currentBuild here, please also update the one in
66
// UnitystationLauncher/Assets/org.unitystation.StationHub.metainfo.xml
7-
public const int CurrentBuild = 935;
7+
public const int CurrentBuild = 936;
88
}

UnitystationLauncher/ViewModels/HubUpdateViewModel.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public string? UpdateMessage
2424
set => this.RaiseAndSetIfChanged(ref _updateMessage, value);
2525
}
2626

27+
public ReactiveCommand<Unit, Unit> Update { get; }
2728
public ReactiveCommand<Unit, LauncherViewModel> Skip { get; }
2829
public ReactiveCommand<Unit, LauncherViewModel> Ignore { get; }
2930

@@ -35,11 +36,15 @@ public string? UpdateMessage
3536
private readonly IHubService _hubService;
3637
private readonly IPreferencesService _preferencesService;
3738

38-
public HubUpdateViewModel(Lazy<LauncherViewModel> launcherVm, IHubService hubService, IPreferencesService preferencesService)
39+
public HubUpdateViewModel(Lazy<LauncherViewModel> launcherVm, IHubService hubService,
40+
IPreferencesService preferencesService)
3941
{
4042
_launcherVm = launcherVm;
4143
_hubService = hubService;
4244
_preferencesService = preferencesService;
45+
46+
// Initialize ReactiveCommands
47+
Update = ReactiveCommand.Create(PerformUpdate);
4348
Ignore = ReactiveCommand.Create(IgnoreUpdate);
4449
Skip = ReactiveCommand.Create(SkipUpdate);
4550

@@ -58,7 +63,7 @@ private async Task<int> GetUpdateVersion()
5863
return hubClientConfig?.BuildNumber ?? 0;
5964
}
6065

61-
private void Update()
66+
private void PerformUpdate()
6267
{
6368
ProcessStartInfo psi = new()
6469
{

0 commit comments

Comments
 (0)