1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:23:22 +08:00

Remove unnecessarily exposed visibility state

This commit is contained in:
Dean Herbert 2020-08-19 19:09:35 +09:00
parent 5737a52fd0
commit 06503597e0

View File

@ -84,16 +84,14 @@ namespace osu.Game.Tests.Visual.Menus
AddStep("try to show toolbar", () => toolbar.Show());
if (mode == OverlayActivation.Disabled)
AddUntilStep("toolbar still hidden", () => toolbar.Visibility == Visibility.Hidden);
AddUntilStep("toolbar still hidden", () => toolbar.State.Value == Visibility.Hidden);
else
AddAssert("toolbar is visible", () => toolbar.Visibility == Visibility.Visible);
AddAssert("toolbar is visible", () => toolbar.State.Value == Visibility.Visible);
}
public class TestToolbar : Toolbar
{
public new Bindable<OverlayActivation> OverlayActivationMode => base.OverlayActivationMode;
public Visibility Visibility => State.Value;
}
}
}