Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash when link is clicked #131

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NeedABreak/AboutBoxWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<TextBlock VerticalAlignment="Bottom"
HorizontalAlignment="Left"
Margin="10">
<Hyperlink NavigateUri="http://www.inrs.fr/risques/travail-ecran/ce-qu-il-faut-retenir.html"
<Hyperlink NavigateUri="https://www.inrs.fr/risques/travail-ecran/ce-qu-il-faut-retenir.html"
RequestNavigate="Hyperlink_RequestNavigate"><utils:TextResource Name="inrs" /></Hyperlink>
</TextBlock>
<TextBlock x:Name="Version"
Expand Down
5 changes: 4 additions & 1 deletion NeedABreak/AboutBoxWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ private void CloseButton_Click(object sender, RoutedEventArgs e)

private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));
ProcessStartInfo psi = new ProcessStartInfo(e.Uri.AbsoluteUri);
psi.UseShellExecute = true;
Process.Start(psi);

e.Handled = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion NeedABreak/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ DEBUG
</NeedABreak.Properties.Settings>
</userSettings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
</assemblyBinding>
</runtime>
</configuration>