mirror of https://github.com/ppy/osu
Fix home button not closing login and now playing overlays
This commit is contained in:
parent
6805c029e7
commit
5235d2b319
|
@ -601,14 +601,14 @@ protected override void LoadComplete()
|
|||
loadComponentSingleFile(userProfile = new UserProfileOverlay(), overlayContent.Add, true);
|
||||
loadComponentSingleFile(beatmapSetOverlay = new BeatmapSetOverlay(), overlayContent.Add, true);
|
||||
|
||||
loadComponentSingleFile(new LoginOverlay
|
||||
var login = loadComponentSingleFile(new LoginOverlay
|
||||
{
|
||||
GetToolbarHeight = () => ToolbarOffset,
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
}, rightFloatingOverlayContent.Add, true);
|
||||
|
||||
loadComponentSingleFile(new NowPlayingOverlay
|
||||
var nowPlaying = loadComponentSingleFile(new NowPlayingOverlay
|
||||
{
|
||||
GetToolbarHeight = () => ToolbarOffset,
|
||||
Anchor = Anchor.TopRight,
|
||||
|
@ -671,6 +671,8 @@ protected override void LoadComplete()
|
|||
};
|
||||
}
|
||||
|
||||
overlays.AddRange(new OverlayContainer[] { login, nowPlaying });
|
||||
|
||||
OverlayActivationMode.ValueChanged += mode =>
|
||||
{
|
||||
if (mode.NewValue != OverlayActivation.All) CloseAllOverlays();
|
||||
|
|
Loading…
Reference in New Issue