mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Move schedule call
This commit is contained in:
@ -220,14 +220,14 @@ namespace osu.Game
|
|||||||
/// This can be called from a non-thread-safe non-game-loaded state.
|
/// This can be called from a non-thread-safe non-game-loaded state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="url">The URL to load.</param>
|
/// <param name="url">The URL to load.</param>
|
||||||
public void HandleLink(string url) => Schedule(() => HandleLink(MessageFormatter.GetLinkDetails(url)));
|
public void HandleLink(string url) => HandleLink(MessageFormatter.GetLinkDetails(url));
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Handle a specific <see cref="LinkDetails"/>.
|
/// Handle a specific <see cref="LinkDetails"/>.
|
||||||
/// This can be called from a non-thread-safe non-game-loaded state.
|
/// This can be called from a non-thread-safe non-game-loaded state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="link">The link to load.</param>
|
/// <param name="link">The link to load.</param>
|
||||||
public void HandleLink(LinkDetails link)
|
public void HandleLink(LinkDetails link) => Schedule(() =>
|
||||||
{
|
{
|
||||||
switch (link.Action)
|
switch (link.Action)
|
||||||
{
|
{
|
||||||
@ -268,7 +268,7 @@ namespace osu.Game
|
|||||||
default:
|
default:
|
||||||
throw new NotImplementedException($"This {nameof(LinkAction)} ({link.Action.ToString()}) is missing an associated action.");
|
throw new NotImplementedException($"This {nameof(LinkAction)} ({link.Action.ToString()}) is missing an associated action.");
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
public void OpenUrlExternally(string url) => waitForReady(() => externalLinkOpener, _ =>
|
public void OpenUrlExternally(string url) => waitForReady(() => externalLinkOpener, _ =>
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user