mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-08 13:58:57 +02:00
UI: Fix sort timing
- Now sorts instantly when an option is selected Co-authored-by: _Neo_ <ursamajorjanus2819@gmail.com>
This commit is contained in:
@@ -69,13 +69,13 @@ namespace Ryujinx.Ava.UI.Windows
|
||||
|
||||
public void Sort_Checked(object sender, RoutedEventArgs args)
|
||||
{
|
||||
if (sender is RadioButton { Tag: string sortField })
|
||||
if (sender is RadioButton { IsChecked: true, Tag: string sortField })
|
||||
ViewModel.SortingField = Enum.Parse<XCITrimmerViewModel.SortField>(sortField);
|
||||
}
|
||||
|
||||
public void Order_Checked(object sender, RoutedEventArgs args)
|
||||
{
|
||||
if (sender is RadioButton { Tag: string sortOrder })
|
||||
if (sender is RadioButton { IsChecked: true, Tag: string sortOrder })
|
||||
ViewModel.SortingAscending = sortOrder is "Ascending";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user