Settings: Renamed toggle to collection view, instead of list view, since it describes more accurately the change

This commit is contained in:
Anders Ejlersen 2025-06-22 09:39:34 +02:00
parent 41f56dff99
commit f1e33f5e6b
3 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ namespace Module.UIToolkit.Editor
if (_ussCollectionView != null)
{
if (settings.listViewDisableMaxHeight)
if (settings.collectionViewDisableMaxHeight)
ve.styleSheets.Add(_ussCollectionView);
else
ve.styleSheets.Remove(_ussCollectionView);

View file

@ -7,7 +7,7 @@ namespace Module.UIToolkit.Editor
[Serializable]
internal sealed class Settings
{
public bool listViewDisableMaxHeight;
public bool collectionViewDisableMaxHeight = true;
private static Settings _settings;

View file

@ -23,8 +23,8 @@ namespace Module.UIToolkit.Editor
EditorGUI.BeginChangeCheck();
EditorGUILayout.BeginVertical();
EditorGUILayout.LabelField("List View", EditorStyles.boldLabel);
settings.listViewDisableMaxHeight = EditorGUILayout.Toggle("Disable Max Height", settings.listViewDisableMaxHeight);
EditorGUILayout.LabelField("Collection View", EditorStyles.boldLabel);
settings.collectionViewDisableMaxHeight = EditorGUILayout.Toggle("Disable Max Height", settings.collectionViewDisableMaxHeight);
EditorGUILayout.EndVertical();