mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Avoid having the user profile show when clicking a spectator panel
This commit is contained in:
@ -22,6 +22,8 @@ namespace osu.Game.Users
|
||||
|
||||
public new Action Action;
|
||||
|
||||
public bool ShowProfileOnClick = true;
|
||||
|
||||
protected Action ViewProfile { get; private set; }
|
||||
|
||||
protected Drawable Background { get; private set; }
|
||||
@ -68,7 +70,8 @@ namespace osu.Game.Users
|
||||
base.Action = ViewProfile = () =>
|
||||
{
|
||||
Action?.Invoke();
|
||||
profileOverlay?.ShowUser(User);
|
||||
if (ShowProfileOnClick)
|
||||
profileOverlay?.ShowUser(User);
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user