mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Adjust to reviews
This commit is contained in:
@ -50,21 +50,10 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private class CopyUrlToast : Toast
|
|
||||||
{
|
|
||||||
public CopyUrlToast(LocalisableString value)
|
|
||||||
: base(UserInterfaceStrings.GeneralHeader, value, "")
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void copyUrl()
|
private void copyUrl()
|
||||||
{
|
|
||||||
if (Link != null)
|
|
||||||
{
|
{
|
||||||
host.GetClipboard()?.SetText(Link);
|
host.GetClipboard()?.SetText(Link);
|
||||||
onScreenDisplay?.Display(new CopyUrlToast(ToastStrings.CopiedUrl));
|
onScreenDisplay?.Display(new CopyUrlToast(ToastStrings.UrlCopied));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public MenuItem[] ContextMenuItems
|
public MenuItem[] ContextMenuItems
|
||||||
@ -109,5 +98,13 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
public LocalisableString TooltipText => "view in browser";
|
public LocalisableString TooltipText => "view in browser";
|
||||||
|
|
||||||
|
private class CopyUrlToast : Toast
|
||||||
|
{
|
||||||
|
public CopyUrlToast(LocalisableString value)
|
||||||
|
: base(UserInterfaceStrings.GeneralHeader, value, "")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user