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); } }