mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:52:55 +08:00
Trim redundant IsLoggedIn checks
This commit is contained in:
parent
906a9b79b5
commit
5d23199233
@ -156,7 +156,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
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 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
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
Block a user