Fix build issue

This commit is contained in:
Jack251970 2025-06-03 23:08:51 +08:00
parent 54c2cd13f6
commit c001041ba8
2 changed files with 6 additions and 7 deletions

View file

@ -309,14 +309,14 @@ namespace Flow.Launcher.Plugin
/// Opens the URL using the browser with the given Uri object, even if the URL is a local file.
/// The browser and mode used is based on what's configured in Flow's default browser settings.
/// </summary>
public void OpenWebUrl(Uri url, bool? inPrivate = null, bool forceBrower = false);
public void OpenWebUrl(Uri url, bool? inPrivate = null);
/// <summary>
/// Opens the URL using the browser with the given string, even if the URL is a local file.
/// The browser and mode used is based on what's configured in Flow's default browser settings.
/// Non-C# plugins should use this method.
/// </summary>
public void OpenWebUrl(string url, bool? inPrivate = null, bool forceBrower = false);
public void OpenWebUrl(string url, bool? inPrivate = null);
/// <summary>
/// Opens the URL with the given Uri object.

View file

@ -390,7 +390,6 @@ namespace Flow.Launcher
}
}
private void OpenUri(Uri uri, bool? inPrivate = null, bool forceBrower = false)
{
if (forceBrower || uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps)
@ -420,14 +419,14 @@ namespace Flow.Launcher
}
}
public void OpenUrl(string url, bool? inPrivate = null, bool forceBrower = false)
public void OpenWebUrl(string url, bool? inPrivate = null)
{
OpenUri(new Uri(url), inPrivate, forceBrower);
OpenUri(new Uri(url), inPrivate, true);
}
public void OpenUrl(Uri url, bool? inPrivate = null, bool forceBrower = false)
public void OpenWebUrl(Uri url, bool? inPrivate = null)
{
OpenUri(url, inPrivate, forceBrower);
OpenUri(url, inPrivate, true);
}
public void OpenUrl(string url, bool? inPrivate = null)