mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 02:17:34 +09:00
Fix the toolbar being visible during startup causing a weird offset
This commit is contained in:
parent
b0f9c0f6f0
commit
da3eb18784
@ -83,14 +83,14 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(OsuGame osuGame)
|
private void load(OsuGame osuGame)
|
||||||
{
|
{
|
||||||
if (osuGame != null)
|
|
||||||
overlayActivationMode.BindTo(osuGame.OverlayActivationMode);
|
|
||||||
|
|
||||||
StateChanged += visibility =>
|
StateChanged += visibility =>
|
||||||
{
|
{
|
||||||
if (overlayActivationMode == OverlayActivation.Disabled)
|
if (overlayActivationMode == OverlayActivation.Disabled)
|
||||||
State = Visibility.Hidden;
|
State = Visibility.Hidden;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (osuGame != null)
|
||||||
|
overlayActivationMode.BindTo(osuGame.OverlayActivationMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ToolbarBackground : Container
|
public class ToolbarBackground : Container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user