mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-05 01:28:56 +02:00
misc: chore: Merge into pattern
This commit is contained in:
@@ -97,7 +97,7 @@ namespace Ryujinx.Headless
|
||||
|
||||
InputConfig config;
|
||||
|
||||
if (inputProfileName == null || inputProfileName.Equals("default"))
|
||||
if (inputProfileName is null or "default")
|
||||
{
|
||||
if (isKeyboard)
|
||||
{
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace Ryujinx.Ava.Input
|
||||
|
||||
internal bool IsPressed(Key key)
|
||||
{
|
||||
if (key == Key.Unbound || key == Key.Unknown)
|
||||
if (key is Key.Unbound or Key.Unknown)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace Ryujinx.Ava.UI.Applet
|
||||
|
||||
return culture.TwoLetterISOLanguageName switch
|
||||
{
|
||||
"zh" => langCode == "zh-CN" || langCode == "zh-Hans" || langCode == "zh-SG"
|
||||
"zh" => langCode is "zh-CN" or "zh-Hans" or "zh-SG"
|
||||
? "Microsoft YaHei UI" // Simplified Chinese
|
||||
: "Microsoft JhengHei UI", // Traditional Chinese
|
||||
|
||||
|
||||
@@ -168,9 +168,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||
get => _vSyncMode;
|
||||
set
|
||||
{
|
||||
if (value == VSyncMode.Custom ||
|
||||
value == VSyncMode.Switch ||
|
||||
value == VSyncMode.Unbounded)
|
||||
if (value is VSyncMode.Custom or VSyncMode.Switch or VSyncMode.Unbounded)
|
||||
{
|
||||
_vSyncMode = value;
|
||||
OnPropertyChanged();
|
||||
|
||||
Reference in New Issue
Block a user