1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 19:22:54 +08:00

Adjust to reviews

This commit is contained in:
Andrew Hong 2022-07-27 21:52:38 -04:00
parent ac39d3a142
commit f097064eea

View File

@ -50,21 +50,10 @@ namespace osu.Game.Graphics.UserInterface
};
}
private class CopyUrlToast : Toast
{
public CopyUrlToast(LocalisableString value)
: base(UserInterfaceStrings.GeneralHeader, value, "")
{
}
}
private void copyUrl()
{
if (Link != null)
{
host.GetClipboard()?.SetText(Link);
onScreenDisplay?.Display(new CopyUrlToast(ToastStrings.CopiedUrl));
}
host.GetClipboard()?.SetText(Link);
onScreenDisplay?.Display(new CopyUrlToast(ToastStrings.UrlCopied));
}
public MenuItem[] ContextMenuItems
@ -109,5 +98,13 @@ namespace osu.Game.Graphics.UserInterface
}
public LocalisableString TooltipText => "view in browser";
private class CopyUrlToast : Toast
{
public CopyUrlToast(LocalisableString value)
: base(UserInterfaceStrings.GeneralHeader, value, "")
{
}
}
}
}