mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08: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()
|
||||
{
|
||||
var loginDisplayed = statics.GetBindable<bool>(Statics.LoginOverlayDisplayed);
|
||||
|
||||
if (!loginDisplayed.Value)
|
||||
if (!statics.Get<bool>(Statics.LoginOverlayDisplayed))
|
||||
{
|
||||
Scheduler.AddDelayed(() => login?.Show(), 500);
|
||||
loginDisplayed.Value = true;
|
||||
statics.Set(Statics.LoginOverlayDisplayed, true);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user