Add popupdialog button to copy url

This commit is contained in:
Andrew Hong
2022-08-24 02:54:24 -04:00
parent 51e607e834
commit b24513038c
2 changed files with 7 additions and 2 deletions

View File

@ -32,7 +32,7 @@ namespace osu.Game.Online.Chat
public void OpenUrlExternally(string url, bool bypassWarning = false)
{
if (!bypassWarning && externalLinkWarning.Value)
dialogOverlay.Push(new ExternalLinkDialog(url, () => host.OpenUrlExternally(url)));
dialogOverlay.Push(new ExternalLinkDialog(url, () => host.OpenUrlExternally(url), () => host.GetClipboard().SetText(url)));
else
host.OpenUrlExternally(url);
}