mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:25:05 +08:00
Remove unnecessarily exposed visibility state
This commit is contained in:
parent
5737a52fd0
commit
06503597e0
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user