Skip to content

Commit 13217d1

Browse files
committed
Fix Process.Start on URL
1 parent 4114000 commit 13217d1

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Flow.Launcher/ReportWindow.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Flow.Launcher.Helper;
1010
using Flow.Launcher.Infrastructure;
1111
using Flow.Launcher.Infrastructure.Logger;
12+
using Flow.Launcher.Plugin.SharedCommands;
1213

1314
namespace Flow.Launcher
1415
{
@@ -51,8 +52,8 @@ private Paragraph Hyperlink(string textBeforeUrl, string url)
5152
var link = new Hyperlink { IsEnabled = true };
5253
link.Inlines.Add(url);
5354
link.NavigateUri = new Uri(url);
54-
link.RequestNavigate += (s, e) => Process.Start(e.Uri.ToString());
55-
link.Click += (s, e) => Process.Start(url);
55+
link.RequestNavigate += (s, e) => SearchWeb.NewBrowserWindow(e.Uri.ToString());
56+
link.Click += (s, e) => SearchWeb.NewBrowserWindow(url);
5657

5758
paragraph.Inlines.Add(textBeforeUrl);
5859
paragraph.Inlines.Add(link);

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Diagnostics;
33
using System.IO;
44
using System.Windows;
@@ -229,7 +229,7 @@ private void OnPluginNameClick(object sender, MouseButtonEventArgs e)
229229
var uri = new Uri(website);
230230
if (Uri.CheckSchemeName(uri.Scheme))
231231
{
232-
Process.Start(website);
232+
SearchWeb.NewBrowserWindow(website);
233233
}
234234
}
235235
}

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using Flow.Launcher.Infrastructure.Storage;
1818
using Flow.Launcher.Infrastructure.UserSettings;
1919
using Flow.Launcher.Plugin;
20+
using Flow.Launcher.Plugin.SharedCommands;
2021
using Flow.Launcher.Storage;
2122

2223
namespace Flow.Launcher.ViewModel
@@ -130,7 +131,7 @@ private void InitializeKeyCommands()
130131

131132
StartHelpCommand = new RelayCommand(_ =>
132133
{
133-
Process.Start("http://doc.wox.one/");
134+
SearchWeb.NewBrowserWindow("http://doc.wox.one/");
134135
});
135136

136137
OpenResultCommand = new RelayCommand(index =>

0 commit comments

Comments
 (0)