Skip to content

Commit

Permalink
Add report button to exception dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Oct 2, 2024
1 parent 8ed89bb commit d4d4636
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Bloxstrap/Resources/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Bloxstrap/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1234,4 +1234,7 @@ Please manually delete Bloxstrap.exe from the install location or try restarting
<data name="Menu.FastFlags.Reset.Title" xml:space="preserve">
<value>Reset everything to defaults</value>
</data>
<data name="Dialog.Exception.Report" xml:space="preserve">
<value>Report exception</value>
</data>
</root>
3 changes: 2 additions & 1 deletion Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@

<Border Grid.Row="2" Padding="15" Background="{ui:ThemeResource SolidBackgroundFillColorSecondaryBrush}">
<StackPanel Orientation="Horizontal" FlowDirection="LeftToRight" HorizontalAlignment="Right">
<Button x:Name="LocateLogFileButton" Content="{x:Static resources:Strings.Common_OpenLogFile}" />
<Button x:Name="ReportExceptionButton" Content="{x:Static resources:Strings.Dialog_Exception_Report}" />
<Button x:Name="LocateLogFileButton" Content="{x:Static resources:Strings.Common_OpenLogFile}" Margin="12,0,0,0" />
<Button x:Name="CloseButton" MinWidth="100" Content="{x:Static resources:Strings.Common_Close}" Margin="12,0,0,0" />
</StackPanel>
</Border>
Expand Down
1 change: 1 addition & 0 deletions Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public ExceptionDialog(Exception exception)
helpMessage = String.Format(Strings.Dialog_Exception_Info_2_Alt, wikiUrl);

HelpMessageMDTextBlock.MarkdownText = helpMessage;
ReportExceptionButton.Click += (_, _) => Utilities.ShellExecute(issueUrl);

LocateLogFileButton.Click += delegate
{
Expand Down

0 comments on commit d4d4636

Please sign in to comment.