mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 15:26:24 +02:00
Added delayed search update timer to XCI File Trimmer dialog and Games Compatibility window to stop phantom duplicate keystrokes from occurring.
This commit is contained in:
parent
1544f54603
commit
4d16b2b4e4
4 changed files with 33 additions and 17 deletions
|
@ -44,6 +44,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
private MainWindowViewModel _mainWindowViewModel;
|
||||
private CancellationTokenSource _cancellationTokenSource;
|
||||
private string _search;
|
||||
private Timer _searchTimer;
|
||||
private ProcessingMode _processingMode;
|
||||
private SortField _sortField = SortField.Name;
|
||||
private bool _sortAscending = true;
|
||||
|
@ -478,7 +479,13 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
set
|
||||
{
|
||||
_search = value;
|
||||
FilteringChanged();
|
||||
_searchTimer?.Dispose();
|
||||
_searchTimer = new Timer(_ =>
|
||||
{
|
||||
FilteringChanged();
|
||||
_searchTimer.Dispose();
|
||||
_searchTimer = null;
|
||||
}, null, 250, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue