Make toolbar testable and add the most basic of visual tests

This commit is contained in:
Dean Herbert
2017-12-26 01:12:46 +09:00
parent 45e4c09cb8
commit dff082ed94
10 changed files with 42 additions and 10 deletions

View File

@ -21,8 +21,11 @@ namespace osu.Game.Overlays.Toolbar
set
{
stateContainer = value;
Action = stateContainer.ToggleVisibility;
stateContainer.StateChanged += stateChanged;
if (stateContainer != null)
{
Action = stateContainer.ToggleVisibility;
stateContainer.StateChanged += stateChanged;
}
}
}