mirror of https://github.com/ppy/osu
Trim redundant IsLoggedIn checks
This commit is contained in:
parent
906a9b79b5
commit
5d23199233
|
@ -156,7 +156,7 @@ private void load(AudioManager audio, IdleTracker idleTracker, GameHost host)
|
|||
|
||||
private void onMultiplayer()
|
||||
{
|
||||
if (!api.IsLoggedIn || api.State.Value != APIState.Online)
|
||||
if (api.State.Value != APIState.Online)
|
||||
{
|
||||
notifications?.Post(new SimpleNotification
|
||||
{
|
||||
|
@ -177,7 +177,7 @@ private void onMultiplayer()
|
|||
|
||||
private void onPlaylists()
|
||||
{
|
||||
if (!api.IsLoggedIn || api.State.Value != APIState.Online)
|
||||
if (api.State.Value != APIState.Online)
|
||||
{
|
||||
notifications?.Post(new SimpleNotification
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue