Skip to content
This repository was archived by the owner on Jan 4, 2025. It is now read-only.

Commit bc94b81

Browse files
authored
支持Github更新检测 (#2)
1 parent b541dd3 commit bc94b81

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/CleanReader.App/Pages/MainPage.xaml.cs

+4
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,10 @@ private async void OnLoadedAsync(object sender, RoutedEventArgs e)
115115
{
116116
await _libraryViewModel.CheckOpenFileOrImportAsync();
117117
}
118+
119+
#if !DEBUG
120+
_viewModel.CheckGithubUpdateCommand.Execute().Subscribe();
121+
#endif
118122
}
119123

120124
private void OnMainNavViewItemInvoked(NavigationView sender, NavigationViewItemInvokedEventArgs args)

src/ViewModels/ViewModels.Desktop/AppViewModel/AppViewModel.Properties.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace CleanReader.ViewModels.Desktop
1919
/// </summary>
2020
public sealed partial class AppViewModel
2121
{
22-
private const string LatestReleaseUrl = "https://api.github.com/repos/Clean-Reader/CleanReader.Uwp/releases/latest";
22+
private const string LatestReleaseUrl = "https://api.github.com/repos/Clean-Reader/CleanReader.Desktop/releases/latest";
2323
private readonly IAppToolkit _appToolkit;
2424
private readonly ISettingsToolkit _settingsToolkit;
2525

0 commit comments

Comments
 (0)