Add hotkey to Toolbar

This commit is contained in:
Andrew Hong 2022-08-09 14:10:38 -04:00
parent b4fc2a0fc8
commit 7ed489b56d
2 changed files with 3 additions and 4 deletions

View File

@ -1138,10 +1138,6 @@ namespace osu.Game
mouseDisableButtons.Value = !mouseDisableButtons.Value;
return true;
case GlobalAction.ToggleProfile:
ShowUser(new APIUser { Id = API.LocalUser.Value.Id });
return true;
case GlobalAction.RandomSkin:
// Don't allow random skin selection while in the skin editor.
// This is mainly to stop many "osu! default (modified)" skins being created via the SkinManager.EnsureMutableSkin() path.

View File

@ -15,6 +15,7 @@ using osu.Game.Localisation;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Users.Drawables;
using osu.Game.Input.Bindings;
using osuTK;
using osuTK.Graphics;
@ -34,6 +35,8 @@ namespace osu.Game.Overlays.Toolbar
public ToolbarUserButton()
{
Hotkey = GlobalAction.ToggleProfile;
AutoSizeAxes = Axes.X;
}