This commit is contained in:
Andrei Zavatski
2021-05-11 16:08:09 +03:00
parent 01f5c77dac
commit 208224cc0d
2 changed files with 4 additions and 4 deletions

View File

@ -35,11 +35,11 @@ namespace osu.Game.Tests.Visual.Online
public void TestVisibility() public void TestVisibility()
{ {
AddStep("Change metadata to null", () => metadataBindable.Value = null); AddStep("Change metadata to null", () => metadataBindable.Value = null);
AddAssert("Panel is hidden", () => panel.IsPresent == false); AddAssert("Panel is hidden", () => !panel.IsPresent);
AddStep("Change metadata", () => metadataBindable.Value = metadata); AddStep("Change metadata", () => metadataBindable.Value = metadata);
AddAssert("Panel is visible", () => panel.IsPresent == true); AddAssert("Panel is visible", () => panel.IsPresent);
AddStep("Change metadata to null", () => metadataBindable.Value = null); AddStep("Change metadata to null", () => metadataBindable.Value = null);
AddAssert("Panel is hidden", () => panel.IsPresent == false); AddAssert("Panel is hidden", () => !panel.IsPresent);
} }
private static readonly APINewsSidebar metadata = new APINewsSidebar private static readonly APINewsSidebar metadata = new APINewsSidebar

View File

@ -160,7 +160,7 @@ namespace osu.Game.Overlays.News.Sidebar
{ {
IdleColour = colourProvider.Light2; IdleColour = colourProvider.Light2;
HoverColour = colourProvider.Light1; HoverColour = colourProvider.Light1;
Action = () => { }; // Avoid button being disabled since there's no proper action assigned. Action = () => { }; // Avoid button being disabled since there's no proper action assigned.
} }
} }
} }