Add the concept of IOnlineComponents, registered tot he API for handling state changes.

This commit is contained in:
Dean Herbert
2016-11-30 15:15:07 +09:00
parent 6809e2ce0a
commit 34e91c8474
4 changed files with 56 additions and 25 deletions

View File

@ -45,7 +45,7 @@ namespace osu.Desktop.VisualTests.Tests
{
base.Reset();
if (api.State != APIAccess.APIState.Online)
if (api.State != APIState.Online)
api.OnStateChange += delegate { initializeChannels(); };
else
initializeChannels();
@ -65,7 +65,7 @@ namespace osu.Desktop.VisualTests.Tests
{
careChannels = new List<Channel>();
if (api.State != APIAccess.APIState.Online)
if (api.State != APIState.Online)
return;
Add(flow = new FlowContainer