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