diff options
| author | Thog <me@thog.eu> | 2020-04-25 15:02:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-25 23:02:44 +1000 |
| commit | 74f8a9bd799989197ff8b2cc26ab11b64d55f3f7 (patch) | |
| tree | 87e91af5fd32f402b80e5450dd1f6bbbe52f8851 | |
| parent | 3cb1fa0e853efc04cc183d3ee75ec1bbe2c845a4 (diff) | |
UI: Implement interactive search on GameTable (#1148)
As I was unable to disable the ctrl + f keybinding, this implement
something to make it works with the default GTK code logic.
Also remove unused _treeView static member.
| -rw-r--r-- | Ryujinx/Ui/MainWindow.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index 7d1b7d42..eb8077e5 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -41,8 +41,6 @@ namespace Ryujinx.Ui private static bool _debuggerOpened; #pragma warning restore CS0169 - private static TreeView _treeView; - #pragma warning disable CS0169 private static Ryujinx.Debugger.Debugger _debugger; #pragma warning restore CS0169 @@ -127,8 +125,6 @@ namespace Ryujinx.Ui // Make sure that everything is loaded. _virtualFileSystem.Reload(); - _treeView = _gameTable; - ApplyTheme(); _mainWin.Icon = new Gdk.Pixbuf(Assembly.GetExecutingAssembly(), "Ryujinx.Ui.assets.Icon.png"); @@ -171,6 +167,9 @@ namespace Ryujinx.Ui _tableStore.SetSortFunc(8, FileSizeSort); _tableStore.SetSortColumnId(0, SortType.Descending); + _gameTable.EnableSearch = true; + _gameTable.SearchColumn = 2; + UpdateColumns(); UpdateGameTable(); |
