From 487deee243c7b1994f049c3d190e1e0971973bca Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 2 Feb 2017 19:51:57 -0500 Subject: Fix download UI --- ShiftOS.WinForms/Applications/Shiftnet.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ShiftOS.WinForms/Applications/Shiftnet.cs') diff --git a/ShiftOS.WinForms/Applications/Shiftnet.cs b/ShiftOS.WinForms/Applications/Shiftnet.cs index 986eec6..d89b55a 100644 --- a/ShiftOS.WinForms/Applications/Shiftnet.cs +++ b/ShiftOS.WinForms/Applications/Shiftnet.cs @@ -89,11 +89,12 @@ namespace ShiftOS.WinForms.Applications private void wbcanvas_Navigating(object sender, WebBrowserNavigatingEventArgs e) { - if (CurrentUrl != e.Url.ToString() && !e.Url.ToString().StartsWith("about:")) + string Url = e.Url.ToString().Replace("http://", ""); + if (CurrentUrl != Url.ToString() && !Url.ToString().StartsWith("about:")) { e.Cancel = true; Future.Clear(); - ShiftnetNavigate(e.Url.ToString()); + ShiftnetNavigate(Url.ToString()); } } @@ -227,5 +228,10 @@ namespace ShiftOS.WinForms.Applications e.SuppressKeyPress = true; } } + + private void wbcanvas_Navigated(object sender, WebBrowserNavigatedEventArgs e) + { + } } } + -- cgit v1.2.3