mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 09:20:02 +09:00
Tidy up user passing logic
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user