From 7f854c35273bc996823b0912ce85e387d1496377 Mon Sep 17 00:00:00 2001 From: Jimmy Reichley Date: Sun, 18 Aug 2024 20:53:46 -0400 Subject: [PATCH] Formatter --- src/Ryujinx.UI.Common/App/ApplicationLibrary.cs | 2 +- .../Configuration/ConfigurationFileFormat.cs | 2 +- src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs | 2 +- src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs | 5 +++-- src/Ryujinx/UI/ViewModels/SettingsViewModel.cs | 6 +++--- src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml.cs | 2 +- src/Ryujinx/UI/Views/Settings/SettingsUIView.axaml.cs | 2 +- 7 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs b/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs index 35b9ca1859..80436a892e 100644 --- a/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs +++ b/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs @@ -549,7 +549,7 @@ namespace Ryujinx.UI.App.Common { Logger.Warning?.Print(LogClass.Application, $"The file encountered was not of a valid type. File: '{filePath}' Error: {exception}"); } - + return false; } diff --git a/src/Ryujinx.UI.Common/Configuration/ConfigurationFileFormat.cs b/src/Ryujinx.UI.Common/Configuration/ConfigurationFileFormat.cs index c0c451134c..36811a5486 100644 --- a/src/Ryujinx.UI.Common/Configuration/ConfigurationFileFormat.cs +++ b/src/Ryujinx.UI.Common/Configuration/ConfigurationFileFormat.cs @@ -261,7 +261,7 @@ namespace Ryujinx.UI.Common.Configuration /// A list of directories containing games to be used to load games into the games list /// public List GameDirs { get; set; } - + /// /// A list of directories containing DLC/updates the user wants to autoload during library refreshes /// diff --git a/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs b/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs index 7a05498bd8..2cb814afa3 100644 --- a/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs +++ b/src/Ryujinx.UI.Common/Configuration/ConfigurationState.cs @@ -121,7 +121,7 @@ namespace Ryujinx.UI.Common.Configuration /// A list of directories containing games to be used to load games into the games list /// public ReactiveObject> GameDirs { get; private set; } - + /// /// A list of directories containing DLC/updates the user wants to autoload during library refreshes /// diff --git a/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs b/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs index 51cd8592b0..c9b645a5c6 100644 --- a/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs @@ -116,7 +116,7 @@ namespace Ryujinx.Ava.UI.ViewModels public MainWindowViewModel() { Applications = new ObservableCollectionExtended(); - + Applications.ToObservableChangeSet() .Filter(Filter) .Sort(GetComparer()) @@ -1263,7 +1263,8 @@ namespace Ryujinx.Ava.UI.ViewModels { var result = await StorageProvider.OpenFolderPickerAsync(new FolderPickerOpenOptions { - Title = LocaleManager.Instance[LocaleKeys.OpenFolderDialogTitle], AllowMultiple = true, + Title = LocaleManager.Instance[LocaleKeys.OpenFolderDialogTitle], + AllowMultiple = true, }); if (result.Count > 0) diff --git a/src/Ryujinx/UI/ViewModels/SettingsViewModel.cs b/src/Ryujinx/UI/ViewModels/SettingsViewModel.cs index bfcf5bdfc4..717d3b0acf 100644 --- a/src/Ryujinx/UI/ViewModels/SettingsViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/SettingsViewModel.cs @@ -126,7 +126,7 @@ namespace Ryujinx.Ava.UI.ViewModels OnPropertyChanged(); } } - + public bool AutoloadDirectoryChanged { get => _autoloadDirectoryChanged; @@ -410,7 +410,7 @@ namespace Ryujinx.Ava.UI.ViewModels GameDirectories.Clear(); GameDirectories.AddRange(config.UI.GameDirs.Value); - + AutoloadDirectories.Clear(); AutoloadDirectories.AddRange(config.UI.AutoloadDirs.Value); @@ -508,7 +508,7 @@ namespace Ryujinx.Ava.UI.ViewModels List gameDirs = new(GameDirectories); config.UI.GameDirs.Value = gameDirs; } - + if (_autoloadDirectoryChanged) { List autoloadDirs = new(AutoloadDirectories); diff --git a/src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml.cs b/src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml.cs index 18d0f1a484..5284957130 100644 --- a/src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml.cs +++ b/src/Ryujinx/UI/Views/Main/MainStatusBarView.axaml.cs @@ -53,7 +53,7 @@ namespace Ryujinx.Ava.UI.Views.Main { Window.LoadApplications(); } - + private void VolumeStatus_OnPointerWheelChanged(object sender, PointerWheelEventArgs e) { // Change the volume by 5% at a time diff --git a/src/Ryujinx/UI/Views/Settings/SettingsUIView.axaml.cs b/src/Ryujinx/UI/Views/Settings/SettingsUIView.axaml.cs index 70ca323068..34ddce071a 100644 --- a/src/Ryujinx/UI/Views/Settings/SettingsUIView.axaml.cs +++ b/src/Ryujinx/UI/Views/Settings/SettingsUIView.axaml.cs @@ -61,7 +61,7 @@ namespace Ryujinx.Ava.UI.Views.Settings GameDirsList.SelectedIndex = oldIndex < GameDirsList.ItemCount ? oldIndex : 0; } } - + private async void AddAutoloadDirButton_OnClick(object sender, RoutedEventArgs e) { string path = AutoloadDirPathBox.Text;