mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-19 11:56:30 +02:00
Prefer generic overload when type is known (#430)
This commit is contained in:
parent
8259f790d7
commit
b5483d8fe0
8 changed files with 14 additions and 14 deletions
|
@ -52,7 +52,7 @@ namespace Ryujinx.Ava.UI.Views.Main
|
|||
private void AspectRatioStatus_OnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
AspectRatio aspectRatio = ConfigurationState.Instance.Graphics.AspectRatio.Value;
|
||||
ConfigurationState.Instance.Graphics.AspectRatio.Value = (int)aspectRatio + 1 > Enum.GetNames(typeof(AspectRatio)).Length - 1 ? AspectRatio.Fixed4x3 : aspectRatio + 1;
|
||||
ConfigurationState.Instance.Graphics.AspectRatio.Value = (int)aspectRatio + 1 > Enum.GetNames<AspectRatio>().Length - 1 ? AspectRatio.Fixed4x3 : aspectRatio + 1;
|
||||
}
|
||||
|
||||
private void Refresh_OnClick(object sender, RoutedEventArgs e) => Window.LoadApplications();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue