This commit is contained in:
pizzaboxer 2024-07-29 19:29:39 +01:00
parent 3f995f4ff0
commit d1343d35dc
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
3 changed files with 24 additions and 2 deletions

View File

@ -1,6 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -556,6 +557,15 @@ namespace Bloxstrap.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Roblox is still launching. A log file will only be available once Roblox launches..
/// </summary>
public static string ContextMenu_RobloxNotRunning {
get {
return ResourceManager.GetString("ContextMenu.RobloxNotRunning", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to See server details.
/// </summary>

View File

@ -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>

View File

@ -11,6 +11,7 @@ using Windows.Win32.Foundation;
using Windows.Win32.UI.WindowsAndMessaging;
using Bloxstrap.Integrations;
using Bloxstrap.Resources;
namespace Bloxstrap.UI.Elements.ContextMenu
{
@ -108,13 +109,21 @@ namespace Bloxstrap.UI.Elements.ContextMenu
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
);