Skip to content

Commit

Permalink
Fix #2315
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Jul 29, 2024
1 parent 3f995f4 commit d1343d3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
10 changes: 10 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 @@ -1024,4 +1024,7 @@ Selecting 'No' will ignore this warning and continue installation.</value>
<data name="Menu.FastFlagEditor.InvalidPlaceFilter" xml:space="preserve">
<value>The entry for '{0}' is not valid as the place filter is not formatted correctly.</value>
</data>
<data name="ContextMenu.RobloxNotRunning" xml:space="preserve">
<value>Roblox is still launching. A log file will only be available once Roblox launches.</value>
</data>
</root>
13 changes: 11 additions & 2 deletions Bloxstrap/UI/Elements/ContextMenu/MenuContainer.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Windows.Win32.UI.WindowsAndMessaging;

using Bloxstrap.Integrations;
using Bloxstrap.Resources;

namespace Bloxstrap.UI.Elements.ContextMenu
{
Expand Down Expand Up @@ -108,13 +109,21 @@ private void Window_Loaded(object? sender, RoutedEventArgs e)

private void LogTracerMenuItem_Click(object sender, RoutedEventArgs e)
{
Utilities.ShellExecute(_activityWatcher?.LogLocation!);
string? location = _activityWatcher?.LogLocation;

if (location is null)
{
Frontend.ShowMessageBox(Strings.ContextMenu_RobloxNotRunning, MessageBoxImage.Information);
return;
}

Utilities.ShellExecute(location);
}

private void CloseRobloxMenuItem_Click(object sender, RoutedEventArgs e)
{
MessageBoxResult result = Frontend.ShowMessageBox(
Bloxstrap.Resources.Strings.ContextMenu_CloseRobloxMessage,
Strings.ContextMenu_CloseRobloxMessage,
MessageBoxImage.Warning,
MessageBoxButton.YesNo
);
Expand Down

0 comments on commit d1343d3

Please sign in to comment.