Skip to content

Commit

Permalink
impl #876
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Sep 15, 2023
1 parent 53c484c commit 1a22303
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Snap.Hutao/Snap.Hutao/Resource/Localization/SH.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2060,6 +2060,9 @@
<data name="ViewPageSettingStorageSetAction" xml:space="preserve">
<value>更改</value>
</data>
<data name="ViewPageSettingStoreReviewNavigate" xml:space="preserve">
<value>评价软件</value>
</data>
<data name="ViewPageSettingTranslateNavigate" xml:space="preserve">
<value>贡献翻译</value>
</data>
Expand Down
4 changes: 4 additions & 0 deletions src/Snap.Hutao/Snap.Hutao/View/Page/SettingPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
Margin="0,0,0,0"
Command="{Binding UpdateCheckCommand}"
Content="{shcm:ResourceString Name=ViewPageSettingUpdateCheckAction}"/>
<HyperlinkButton
Margin="12,0,0,0"
Command="{Binding StoreReviewCommand}"
Content="{shcm:ResourceString Name=ViewPageSettingStoreReviewNavigate}"/>
<HyperlinkButton
Margin="12,0,0,0"
Content="{shcm:ResourceString Name=ViewPageSettingOfficialSiteNavigate}"
Expand Down
6 changes: 6 additions & 0 deletions src/Snap.Hutao/Snap.Hutao/ViewModel/SettingViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ await navigationService
}
}

[Command("StoreReviewCommand")]
private async Task StoreReviewAsync()
{
await Launcher.LaunchUriAsync(new("ms-windows-store://review/?ProductId=9PH4NXJ2JN52"));
}

[Command("SetDataFolderCommand")]
private async Task SetDataFolderAsync()
{
Expand Down

0 comments on commit 1a22303

Please sign in to comment.