mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Tidy up user passing logic
This commit is contained in:
parent
60abe83398
commit
e01383b138
@ -1140,15 +1140,10 @@ namespace osu.Game
|
||||
|
||||
case GlobalAction.ToggleProfile:
|
||||
if (userProfile.State.Value == Visibility.Visible)
|
||||
{
|
||||
userProfile.Hide();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowUser(new APIUser { Id = API.LocalUser.Value.Id });
|
||||
return true;
|
||||
}
|
||||
ShowUser(API.LocalUser.Value);
|
||||
return true;
|
||||
|
||||
case GlobalAction.RandomSkin:
|
||||
// Don't allow random skin selection while in the skin editor.
|
||||
|
Loading…
Reference in New Issue
Block a user