inicial
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user