mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
Save IsExpanded to SessionState by PropertyPath
This commit is contained in:
parent
df34309dc1
commit
d35a28ba20
@ -237,10 +237,10 @@ namespace TriInspector
|
||||
|
||||
if (_isExpandedPrefsKey == null)
|
||||
{
|
||||
_isExpandedPrefsKey = $"TriInspector.expanded.{PropertyTree.TargetObjectType}.{RawName}";
|
||||
_isExpandedPrefsKey = $"TriInspector.expanded.{PropertyPath}";
|
||||
}
|
||||
|
||||
return EditorPrefs.GetBool(_isExpandedPrefsKey, false);
|
||||
return SessionState.GetBool(_isExpandedPrefsKey, false);
|
||||
}
|
||||
set
|
||||
{
|
||||
@ -255,7 +255,7 @@ namespace TriInspector
|
||||
}
|
||||
else if (_isExpandedPrefsKey != null)
|
||||
{
|
||||
EditorPrefs.SetBool(_isExpandedPrefsKey, value);
|
||||
SessionState.SetBool(_isExpandedPrefsKey, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user