mirror of
https://github.com/osukey/osukey.git
synced 2025-05-09 15:47:38 +09:00
Use direct get and set instead
This commit is contained in:
parent
d013b73d33
commit
cde7f49db1
@ -200,12 +200,10 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
bool displayLogin()
|
bool displayLogin()
|
||||||
{
|
{
|
||||||
var loginDisplayed = statics.GetBindable<bool>(Statics.LoginOverlayDisplayed);
|
if (!statics.Get<bool>(Statics.LoginOverlayDisplayed))
|
||||||
|
|
||||||
if (!loginDisplayed.Value)
|
|
||||||
{
|
{
|
||||||
Scheduler.AddDelayed(() => login?.Show(), 500);
|
Scheduler.AddDelayed(() => login?.Show(), 500);
|
||||||
loginDisplayed.Value = true;
|
statics.Set(Statics.LoginOverlayDisplayed, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user