Improve gameTable search (#2398)

* Improve gameTable search

* Remove useless split

* Remove unneeded brackets

* Simplify searchEqualFunc

Co-authored-by: Ac_K <Acoustik666@gmail.com>

* Remove leftovers (oops)

Co-authored-by: Ac_K <Acoustik666@gmail.com>
This commit is contained in:
ooa113y 2021-06-24 03:21:52 +03:00 committed by GitHub
parent 77aab9aca3
commit 3359b0fd97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -230,6 +230,7 @@ namespace Ryujinx.Ui
_gameTable.EnableSearch = true; _gameTable.EnableSearch = true;
_gameTable.SearchColumn = 2; _gameTable.SearchColumn = 2;
_gameTable.SearchEqualFunc = (model, col, key, iter) => !((string)model.GetValue(iter, col)).Contains(key, StringComparison.InvariantCultureIgnoreCase);
UpdateColumns(); UpdateColumns();
UpdateGameTable(); UpdateGameTable();