CogwheelUnity/Cogwheel/Library/PackageCache/com.unity.test-framework@1.1.33/UnityEditor.TestRunner/TestRunnerWindowSettings.cs
Spudnut2000 86e8b2168c Init
2024-10-01 23:23:13 -05:00

27 lines
663 B
C#

namespace UnityEditor.TestTools.TestRunner
{
internal class TestRunnerWindowSettings
{
public bool verticalSplit;
private readonly string m_PrefsKey;
public TestRunnerWindowSettings(string prefsKey)
{
m_PrefsKey = prefsKey;
verticalSplit = EditorPrefs.GetBool(m_PrefsKey + ".verticalSplit", true);
}
public void ToggleVerticalSplit()
{
verticalSplit = !verticalSplit;
Save();
}
private void Save()
{
EditorPrefs.SetBool(m_PrefsKey + ".verticalSplit", verticalSplit);
}
}
}