Formatter
This commit is contained in:
parent
665d1d4f6f
commit
7f854c3527
7 changed files with 11 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
/// </summary>
|
||||
public List<string> GameDirs { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A list of directories containing DLC/updates the user wants to autoload during library refreshes
|
||||
/// </summary>
|
||||
|
|
|
@ -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
|
||||
/// </summary>
|
||||
public ReactiveObject<List<string>> GameDirs { get; private set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A list of directories containing DLC/updates the user wants to autoload during library refreshes
|
||||
/// </summary>
|
||||
|
|
|
@ -116,7 +116,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
public MainWindowViewModel()
|
||||
{
|
||||
Applications = new ObservableCollectionExtended<ApplicationData>();
|
||||
|
||||
|
||||
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)
|
||||
|
|
|
@ -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<string> gameDirs = new(GameDirectories);
|
||||
config.UI.GameDirs.Value = gameDirs;
|
||||
}
|
||||
|
||||
|
||||
if (_autoloadDirectoryChanged)
|
||||
{
|
||||
List<string> autoloadDirs = new(AutoloadDirectories);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue