mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 09:02:55 +08:00
Adjust to reviews
This commit is contained in:
parent
ac39d3a142
commit
f097064eea
@ -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));
|
||||
}
|
||||
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, "")
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user