From fa0696ca277aeb77eae5276e4b26ae019d10b95c Mon Sep 17 00:00:00 2001 From: Babib3l Date: Mon, 30 Mar 2026 21:40:32 +0200 Subject: [PATCH] Rename and privatize input device refresh helper --- src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs b/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs index 7ed32903b..5bab2c49f 100644 --- a/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs @@ -291,7 +291,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input public void ResetCurrentDeviceToDefaults() { - LoadDevices(); + RefreshAvailableDevices(); if (_device <= 0 || _device >= Devices.Count || Devices[_device].Type == DeviceType.None) { @@ -352,7 +352,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input _isLoaded = false; - LoadDevices(); + RefreshAvailableDevices(); PlayerId = PlayerIndex.Player1; } @@ -573,7 +573,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input bool shouldApplyKeyboardFallback = Config is StandardControllerInputConfig controllerConfig && controllerConfig.Id == id; - LoadDevices(); + RefreshAvailableDevices(); if (shouldApplyKeyboardFallback) { @@ -598,7 +598,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input { _isChangeTrackingActive = false; // Disable configuration change tracking - LoadDevices(); + RefreshAvailableDevices(); IsModified = true; RevertChanges(); @@ -700,7 +700,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input return str[(str.IndexOf(Hyphen) + Offset)..]; } - public void LoadDevices() + private void RefreshAvailableDevices() { int selectedDeviceIndex = 0; (DeviceType Type, string Id, string Name) selectedDevice = default;