misc: chore: fix some compile warnings
This commit is contained in:
parent
bdd890cf6f
commit
27993b789f
@ -12,8 +12,8 @@ namespace Ryujinx.Ava.UI.Helpers
|
|||||||
private static readonly Lazy<PlayabilityStatusConverter> _shared = new(() => new());
|
private static readonly Lazy<PlayabilityStatusConverter> _shared = new(() => new());
|
||||||
public static PlayabilityStatusConverter Shared => _shared.Value;
|
public static PlayabilityStatusConverter Shared => _shared.Value;
|
||||||
|
|
||||||
public object Convert(object? value, Type _, object? __, CultureInfo ___) =>
|
public object Convert(object value, Type _, object __, CultureInfo ___)
|
||||||
value.Cast<LocaleKeys>() switch
|
=> value.Cast<LocaleKeys>() switch
|
||||||
{
|
{
|
||||||
LocaleKeys.CompatibilityListNothing or
|
LocaleKeys.CompatibilityListNothing or
|
||||||
LocaleKeys.CompatibilityListBoots or
|
LocaleKeys.CompatibilityListBoots or
|
||||||
@ -22,7 +22,7 @@ namespace Ryujinx.Ava.UI.Helpers
|
|||||||
_ => Brushes.ForestGreen
|
_ => Brushes.ForestGreen
|
||||||
};
|
};
|
||||||
|
|
||||||
public object ConvertBack(object? value, Type _, object? __, CultureInfo ___)
|
public object ConvertBack(object value, Type _, object __, CultureInfo ___)
|
||||||
=> throw new NotSupportedException();
|
=> throw new NotSupportedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -741,7 +741,10 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||||||
Applications.ToObservableChangeSet()
|
Applications.ToObservableChangeSet()
|
||||||
.Filter(Filter)
|
.Filter(Filter)
|
||||||
.Sort(GetComparer())
|
.Sort(GetComparer())
|
||||||
.Bind(out _appsObservableList).AsObservableList();
|
#pragma warning disable MVVMTK0034
|
||||||
|
.Bind(out _appsObservableList)
|
||||||
|
#pragma warning enable MVVMTK0034
|
||||||
|
.AsObservableList();
|
||||||
|
|
||||||
OnPropertyChanged(nameof(AppsObservableList));
|
OnPropertyChanged(nameof(AppsObservableList));
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ using nietras.SeparatedValues;
|
|||||||
using Ryujinx.Ava.Common.Locale;
|
using Ryujinx.Ava.Common.Locale;
|
||||||
using Ryujinx.Common.Logging;
|
using Ryujinx.Common.Logging;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
@ -11,7 +10,7 @@ using System.Text;
|
|||||||
|
|
||||||
namespace Ryujinx.Ava.Utilities.Compat
|
namespace Ryujinx.Ava.Utilities.Compat
|
||||||
{
|
{
|
||||||
public struct ColumnIndices(Func<string, int> getIndex)
|
public struct ColumnIndices(Func<ReadOnlySpan<char>, int> getIndex)
|
||||||
{
|
{
|
||||||
public const string TitleIdCol = "\"title_id\"";
|
public const string TitleIdCol = "\"title_id\"";
|
||||||
public const string GameNameCol = "\"game_name\"";
|
public const string GameNameCol = "\"game_name\"";
|
||||||
|
@ -42,7 +42,7 @@ namespace Ryujinx.Ava.Utilities.Compat
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TextBox_OnTextChanged(object? sender, TextChangedEventArgs e)
|
private void TextBox_OnTextChanged(object sender, TextChangedEventArgs e)
|
||||||
{
|
{
|
||||||
if (DataContext is not CompatibilityViewModel cvm)
|
if (DataContext is not CompatibilityViewModel cvm)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user