Add OpenChangelogWindow function

This commit is contained in:
yell0wsuit 2024-04-18 13:41:05 +07:00
parent 2f29559faf
commit 4b7b3dc4c7
No known key found for this signature in database
GPG key ID: 5B4F198A9800F6F4
2 changed files with 7 additions and 2 deletions

View file

@ -87,8 +87,7 @@
Padding="5" Padding="5"
HorizontalAlignment="Center" HorizontalAlignment="Center"
Background="Transparent" Background="Transparent"
Click="Button_OnClick" Click="OpenChangelogWindow">
Tag="https://github.com/Ryujinx/Ryujinx/wiki/Changelog#ryujinx-changelog">
<TextBlock <TextBlock
FontSize="10" FontSize="10"
Text="{locale:Locale AboutChangelogButton}" Text="{locale:Locale AboutChangelogButton}"

View file

@ -52,6 +52,12 @@ namespace Ryujinx.Ava.UI.Windows
} }
} }
private void OpenChangelogWindow(object sender, RoutedEventArgs e)
{
ChangelogWindow changelogWindow = new ChangelogWindow();
changelogWindow.Show();
}
private void AmiiboLabel_OnPointerPressed(object sender, PointerPressedEventArgs e) private void AmiiboLabel_OnPointerPressed(object sender, PointerPressedEventArgs e)
{ {
if (sender is TextBlock) if (sender is TextBlock)