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}");
|
Logger.Warning?.Print(LogClass.Application, $"The file encountered was not of a valid type. File: '{filePath}' Error: {exception}");
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
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
|
/// A list of directories containing games to be used to load games into the games list
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<string> GameDirs { get; set; }
|
public List<string> GameDirs { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A list of directories containing DLC/updates the user wants to autoload during library refreshes
|
/// A list of directories containing DLC/updates the user wants to autoload during library refreshes
|
||||||
/// </summary>
|
/// </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
|
/// A list of directories containing games to be used to load games into the games list
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ReactiveObject<List<string>> GameDirs { get; private set; }
|
public ReactiveObject<List<string>> GameDirs { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A list of directories containing DLC/updates the user wants to autoload during library refreshes
|
/// A list of directories containing DLC/updates the user wants to autoload during library refreshes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -116,7 +116,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
public MainWindowViewModel()
|
public MainWindowViewModel()
|
||||||
{
|
{
|
||||||
Applications = new ObservableCollectionExtended<ApplicationData>();
|
Applications = new ObservableCollectionExtended<ApplicationData>();
|
||||||
|
|
||||||
Applications.ToObservableChangeSet()
|
Applications.ToObservableChangeSet()
|
||||||
.Filter(Filter)
|
.Filter(Filter)
|
||||||
.Sort(GetComparer())
|
.Sort(GetComparer())
|
||||||
|
@ -1263,7 +1263,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
{
|
{
|
||||||
var result = await StorageProvider.OpenFolderPickerAsync(new FolderPickerOpenOptions
|
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)
|
if (result.Count > 0)
|
||||||
|
|
|
@ -126,7 +126,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
OnPropertyChanged();
|
OnPropertyChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AutoloadDirectoryChanged
|
public bool AutoloadDirectoryChanged
|
||||||
{
|
{
|
||||||
get => _autoloadDirectoryChanged;
|
get => _autoloadDirectoryChanged;
|
||||||
|
@ -410,7 +410,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
|
|
||||||
GameDirectories.Clear();
|
GameDirectories.Clear();
|
||||||
GameDirectories.AddRange(config.UI.GameDirs.Value);
|
GameDirectories.AddRange(config.UI.GameDirs.Value);
|
||||||
|
|
||||||
AutoloadDirectories.Clear();
|
AutoloadDirectories.Clear();
|
||||||
AutoloadDirectories.AddRange(config.UI.AutoloadDirs.Value);
|
AutoloadDirectories.AddRange(config.UI.AutoloadDirs.Value);
|
||||||
|
|
||||||
|
@ -508,7 +508,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
||||||
List<string> gameDirs = new(GameDirectories);
|
List<string> gameDirs = new(GameDirectories);
|
||||||
config.UI.GameDirs.Value = gameDirs;
|
config.UI.GameDirs.Value = gameDirs;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_autoloadDirectoryChanged)
|
if (_autoloadDirectoryChanged)
|
||||||
{
|
{
|
||||||
List<string> autoloadDirs = new(AutoloadDirectories);
|
List<string> autoloadDirs = new(AutoloadDirectories);
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace Ryujinx.Ava.UI.Views.Main
|
||||||
{
|
{
|
||||||
Window.LoadApplications();
|
Window.LoadApplications();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void VolumeStatus_OnPointerWheelChanged(object sender, PointerWheelEventArgs e)
|
private void VolumeStatus_OnPointerWheelChanged(object sender, PointerWheelEventArgs e)
|
||||||
{
|
{
|
||||||
// Change the volume by 5% at a time
|
// 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;
|
GameDirsList.SelectedIndex = oldIndex < GameDirsList.ItemCount ? oldIndex : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async void AddAutoloadDirButton_OnClick(object sender, RoutedEventArgs e)
|
private async void AddAutoloadDirButton_OnClick(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
string path = AutoloadDirPathBox.Text;
|
string path = AutoloadDirPathBox.Text;
|
||||||
|
|
Loading…
Reference in a new issue