diff --git a/Bloxstrap/Resources/Strings.Designer.cs b/Bloxstrap/Resources/Strings.Designer.cs index a83be9a..1754ddd 100644 --- a/Bloxstrap/Resources/Strings.Designer.cs +++ b/Bloxstrap/Resources/Strings.Designer.cs @@ -767,6 +767,17 @@ namespace Bloxstrap.Resources { } } + /// + /// Looks up a localized string similar to Check the [Bloxstrap Wiki]({0}) first to see if this problem has already been addressed with a fix. + /// + ///If not, then please report this exception to the maintainers of this fork. Do NOT report this to Bloxstrap's GitHub issues, as this is an unoffical build.. + /// + public static string Dialog_Exception_Info_2_Alt { + get { + return ResourceManager.GetString("Dialog.Exception.Info.2.Alt", resourceCulture); + } + } + /// /// Looks up a localized string similar to Bloxstrap Exception. /// diff --git a/Bloxstrap/Resources/Strings.resx b/Bloxstrap/Resources/Strings.resx index 5704db3..3572a09 100644 --- a/Bloxstrap/Resources/Strings.resx +++ b/Bloxstrap/Resources/Strings.resx @@ -1097,4 +1097,9 @@ Bloxstrap was installed at "{1}". Bloxstrap was unable to create shortcuts for the Desktop and Start menu. Try creating them later through Bloxstrap Settings. + + Check the [Bloxstrap Wiki]({0}) first to see if this problem has already been addressed with a fix. + +If not, then please report this exception to the maintainers of this fork. Do NOT report this to Bloxstrap's GitHub issues, as this is an unoffical build. + \ No newline at end of file diff --git a/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml b/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml index 92be622..4c1dd33 100644 --- a/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml +++ b/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml @@ -35,7 +35,7 @@ - + diff --git a/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml.cs b/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml.cs index 0c7dd86..7205b37 100644 --- a/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml.cs +++ b/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml.cs @@ -6,6 +6,8 @@ using System.Windows.Interop; using Windows.Win32; using Windows.Win32.Foundation; +using Bloxstrap.Resources; + namespace Bloxstrap.UI.Elements.Dialogs { // hmm... do i use MVVM for this? @@ -22,7 +24,14 @@ namespace Bloxstrap.UI.Elements.Dialogs AddException(exception); if (!App.Logger.Initialized) - LocateLogFileButton.Content = Bloxstrap.Resources.Strings.Dialog_Exception_CopyLogContents; + LocateLogFileButton.Content = Strings.Dialog_Exception_CopyLogContents; + + string helpMessage = String.Format(Strings.Dialog_Exception_Info_2, "https://github.com/pizzaboxer/bloxstrap/wiki", "https://github.com/pizzaboxer/bloxstrap/issues/new?template=bug_report.yaml"); + + if (String.IsNullOrEmpty(App.BuildMetadata.CommitHash)) + helpMessage = String.Format(Strings.Dialog_Exception_Info_2_Alt, "https://github.com/pizzaboxer/bloxstrap/wiki"); + + HelpMessageMDTextBlock.MarkdownText = helpMessage; LocateLogFileButton.Click += delegate {