You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
637 B
C#
27 lines
637 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);
|
|
}
|
|
}
|
|
}
|