1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 05:01:20 +08:00

Fix the toolbar being visible during startup causing a weird offset

This commit is contained in:
Dean Herbert
2018-09-05 10:38:05 +09:00
Unverified
parent b0f9c0f6f0
commit da3eb18784
+3 -3
View File
@@ -83,14 +83,14 @@ namespace osu.Game.Overlays.Toolbar
[BackgroundDependencyLoader(true)]
private void load(OsuGame osuGame)
{
if (osuGame != null)
overlayActivationMode.BindTo(osuGame.OverlayActivationMode);
StateChanged += visibility =>
{
if (overlayActivationMode == OverlayActivation.Disabled)
State = Visibility.Hidden;
};
if (osuGame != null)
overlayActivationMode.BindTo(osuGame.OverlayActivationMode);
}
public class ToolbarBackground : Container