Skip to content

Commit 7ca3769

Browse files
committed
Use PrivateModeArgument & Implement new logic for browser openning
1 parent 978b185 commit 7ca3769

File tree

1 file changed

+10
-4
lines changed
  • Plugins/Flow.Launcher.Plugin.Url

1 file changed

+10
-4
lines changed

Plugins/Flow.Launcher.Plugin.Url/Main.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,20 @@ public List<Result> Query(Query query)
6868
}
6969
try
7070
{
71-
var browserPath = Settings.UseCustomBrowser ? Settings.BrowserPath : string.Empty;
72-
if (Settings.OpenInNewBrowserWindow)
71+
if (Settings.UseCustomBrowser)
7372
{
74-
SearchWeb.OpenInBrowserWindow(raw, browserPath, Settings.OpenInPrivateMode);
73+
if (Settings.OpenInNewBrowserWindow)
74+
{
75+
SearchWeb.OpenInBrowserWindow(raw, Settings.BrowserPath, Settings.OpenInPrivateMode, Settings.PrivateModeArgument);
76+
}
77+
else
78+
{
79+
SearchWeb.OpenInBrowserTab(raw, Settings.BrowserPath, Settings.OpenInPrivateMode, Settings.PrivateModeArgument);
80+
}
7581
}
7682
else
7783
{
78-
SearchWeb.OpenInBrowserTab(raw, browserPath, Settings.OpenInPrivateMode);
84+
Context.API.OpenWebUrl(raw);
7985
}
8086
return true;
8187
}

0 commit comments

Comments
 (0)