diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml
index 56f0166..e76f232 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yaml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yaml
@@ -32,3 +32,10 @@ body:
description: Provide a comprehensive description of the problem you're facing. Don't forget to attach any additional resources you may have, such as log files and screenshots.
validations:
required: true
+ - type: textarea
+ id: log
+ attributes:
+ label: Bloxstrap Log
+ description: If you're getting a Bloxstrap Exception error, upload your log file here. Otherwise, just leave it empty.
+ value: "N/A"
+ render: text
\ No newline at end of file
diff --git a/Bloxstrap/Resources/Strings.Designer.cs b/Bloxstrap/Resources/Strings.Designer.cs
index 61592fe..1ce1035 100644
--- a/Bloxstrap/Resources/Strings.Designer.cs
+++ b/Bloxstrap/Resources/Strings.Designer.cs
@@ -449,15 +449,6 @@ namespace Bloxstrap.Resources {
}
}
- ///
- /// Looks up a localized string similar to Locate log file.
- ///
- public static string Common_LocateLogFile {
- get {
- return ResourceManager.GetString("Common.LocateLogFile", resourceCulture);
- }
- }
-
///
/// Looks up a localized string similar to Miscellaneous.
///
@@ -521,6 +512,15 @@ namespace Bloxstrap.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Open log file.
+ ///
+ public static string Common_OpenLogFile {
+ get {
+ return ResourceManager.GetString("Common.OpenLogFile", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Presets.
///
@@ -629,15 +629,6 @@ namespace Bloxstrap.Resources {
}
}
- ///
- /// Looks up a localized string similar to Open log file.
- ///
- public static string ContextMenu_OpenLogFile {
- get {
- return ResourceManager.GetString("ContextMenu.OpenLogFile", resourceCulture);
- }
- }
-
///
/// Looks up a localized string similar to Roblox is still launching. A log file will only be available once Roblox launches..
///
diff --git a/Bloxstrap/Resources/Strings.resx b/Bloxstrap/Resources/Strings.resx
index 70f23a2..52c7f52 100644
--- a/Bloxstrap/Resources/Strings.resx
+++ b/Bloxstrap/Resources/Strings.resx
@@ -226,8 +226,8 @@ Your ReShade configuration files will still be saved, and you can locate them by
Import JSON
-
- Locate log file
+
+ Open log fileMiscellaneous
@@ -268,9 +268,6 @@ Your ReShade configuration files will still be saved, and you can locate them by
Copy invite deeplink
-
- Open log file
-
See server details
diff --git a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml
index a926eb4..88a7380 100644
--- a/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml
+++ b/Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml
@@ -81,7 +81,7 @@
-
+
diff --git a/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml b/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml
index 4c1dd33..1fa1c01 100644
--- a/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml
+++ b/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml
@@ -41,7 +41,7 @@
-
+
diff --git a/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml.cs b/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml.cs
index dea2842..c361a58 100644
--- a/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml.cs
+++ b/Bloxstrap/UI/Elements/Dialogs/ExceptionDialog.xaml.cs
@@ -28,10 +28,10 @@ namespace Bloxstrap.UI.Elements.Dialogs
string wikiUrl = $"{repoUrl}/wiki";
string issueUrl = String.Format(
- "{0}/issues/new?template=bug_report.yaml&title={1}&what-happened={2}",
+ "{0}/issues/new?template=bug_report.yaml&title={1}&log={2}",
repoUrl,
HttpUtility.UrlEncode($"[BUG] {exception.GetType()}: {exception.Message}"),
- HttpUtility.UrlEncode($"Log:\n```\n{String.Join('\n', App.Logger.History)}\n```")
+ HttpUtility.UrlEncode(String.Join('\n', App.Logger.History))
);
string helpMessage = String.Format(Strings.Dialog_Exception_Info_2, wikiUrl, issueUrl);
@@ -43,8 +43,8 @@ namespace Bloxstrap.UI.Elements.Dialogs
LocateLogFileButton.Click += delegate
{
- if (App.Logger.Initialized)
- Process.Start("explorer.exe", $"/select,\"{App.Logger.FileLocation}\"");
+ if (App.Logger.Initialized && !String.IsNullOrEmpty(App.Logger.FileLocation))
+ Utilities.ShellExecute(App.Logger.FileLocation);
else
Clipboard.SetDataObject(String.Join("\r\n", App.Logger.History));
};