From 5e2b4adff30052192fe18be5329801ecc35daf6a Mon Sep 17 00:00:00 2001 From: thallard Date: Fri, 6 Aug 2021 00:21:27 +0200 Subject: [PATCH] Removed useless static path thanks to @jb-perrier --- Source/Editor/Windows/ContentWindow.Search.cs | 2 +- Source/Editor/Windows/ContentWindow.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Editor/Windows/ContentWindow.Search.cs b/Source/Editor/Windows/ContentWindow.Search.cs index d8c304c23..4800705ce 100644 --- a/Source/Editor/Windows/ContentWindow.Search.cs +++ b/Source/Editor/Windows/ContentWindow.Search.cs @@ -230,7 +230,7 @@ namespace FlaxEditor.Windows } _view.IsSearching = true; - _view.ShowItems(items, Editor.Windows.ContentWin._sortType); + _view.ShowItems(items, _sortType); } private void UpdateItemsSearchFilter(ContentFolder folder, List items, bool[] filters) diff --git a/Source/Editor/Windows/ContentWindow.cs b/Source/Editor/Windows/ContentWindow.cs index 332e9331f..3b9c47c13 100644 --- a/Source/Editor/Windows/ContentWindow.cs +++ b/Source/Editor/Windows/ContentWindow.cs @@ -239,9 +239,9 @@ namespace FlaxEditor.Windows { switch (button.Text) { - case "Alphabetic Order": Editor.Windows.ContentWin._sortType = SortType.AlphabeticOrder; + case "Alphabetic Order": _sortType = SortType.AlphabeticOrder; break; - case "Alphabetic Reverse": Editor.Windows.ContentWin._sortType = SortType.AlphabeticReverse; + case "Alphabetic Reverse": _sortType = SortType.AlphabeticReverse; break; } RefreshView(SelectedNode); @@ -718,12 +718,12 @@ namespace FlaxEditor.Windows items.Add(node.Folder); } } - _view.ShowItems(items, Editor.Windows.ContentWin._sortType); + _view.ShowItems(items, _sortType); } else { // Show folder contents - _view.ShowItems(target.Folder.Children, Editor.Windows.ContentWin._sortType); + _view.ShowItems(target.Folder.Children, _sortType); } }