From 5ad5679145b2ed8ce92a1b1e1b44aa68b9e25f61 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Tue, 16 Jul 2024 12:22:00 +0100 Subject: [PATCH] Cleanup casts --- src/Ryujinx/UI/Views/Input/InputView.axaml.cs | 2 +- src/Ryujinx/UI/Views/Settings/SettingsGraphicsView.axaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx/UI/Views/Input/InputView.axaml.cs b/src/Ryujinx/UI/Views/Input/InputView.axaml.cs index dd5f436ca..7c21d839f 100644 --- a/src/Ryujinx/UI/Views/Input/InputView.axaml.cs +++ b/src/Ryujinx/UI/Views/Input/InputView.axaml.cs @@ -35,7 +35,7 @@ namespace Ryujinx.Ava.UI.Views.Input LocaleManager.Instance[LocaleKeys.InputDialogYes], LocaleManager.Instance[LocaleKeys.InputDialogNo], LocaleManager.Instance[LocaleKeys.RyujinxConfirm], - parent: (Window)this.VisualRoot); + parent: (Window)VisualRoot); if (result == UserResult.Yes) { diff --git a/src/Ryujinx/UI/Views/Settings/SettingsGraphicsView.axaml.cs b/src/Ryujinx/UI/Views/Settings/SettingsGraphicsView.axaml.cs index 514a40c58..9901c2ead 100644 --- a/src/Ryujinx/UI/Views/Settings/SettingsGraphicsView.axaml.cs +++ b/src/Ryujinx/UI/Views/Settings/SettingsGraphicsView.axaml.cs @@ -30,7 +30,7 @@ namespace Ryujinx.Ava.UI.Views.Settings "", LocaleManager.Instance[LocaleKeys.InputDialogOk], LocaleManager.Instance[LocaleKeys.DialogSettingsBackendThreadingWarningTitle], - parent: this.VisualRoot as Window) + parent: (Window)VisualRoot) ); } }