Settings: Renamed toggle to collection view, instead of list view, since it describes more accurately the change
This commit is contained in:
parent
41f56dff99
commit
f1e33f5e6b
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace Module.UIToolkit.Editor
|
|||
[Serializable]
|
||||
internal sealed class Settings
|
||||
{
|
||||
public bool listViewDisableMaxHeight;
|
||||
public bool collectionViewDisableMaxHeight = true;
|
||||
|
||||
private static Settings _settings;
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue