From c001041ba8d2743617c4931a0ad72038e0fd0fb1 Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Tue, 3 Jun 2025 23:08:51 +0800
Subject: [PATCH] Fix build issue
---
Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs | 4 ++--
Flow.Launcher/PublicAPIInstance.cs | 9 ++++-----
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
index e89839131..b87cc52d0 100644
--- a/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
+++ b/Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
@@ -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.
///
- public void OpenWebUrl(Uri url, bool? inPrivate = null, bool forceBrower = false);
+ public void OpenWebUrl(Uri url, bool? inPrivate = null);
///
/// 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.
///
- public void OpenWebUrl(string url, bool? inPrivate = null, bool forceBrower = false);
+ public void OpenWebUrl(string url, bool? inPrivate = null);
///
/// Opens the URL with the given Uri object.
diff --git a/Flow.Launcher/PublicAPIInstance.cs b/Flow.Launcher/PublicAPIInstance.cs
index b238a899d..bc82c2e8f 100644
--- a/Flow.Launcher/PublicAPIInstance.cs
+++ b/Flow.Launcher/PublicAPIInstance.cs
@@ -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)