1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 18:27:26 +08:00

Merge pull request #3355 from peppy/fix-toolbar-blip

Fix the toolbar being visible during startup causing a weird offset
This commit is contained in:
Dean Herbert 2018-09-06 17:35:24 +09:00 committed by GitHub
commit 1f47714786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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