mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix #2315
This commit is contained in:
parent
3f995f4ff0
commit
d1343d35dc
10
Bloxstrap/Resources/Strings.Designer.cs
generated
10
Bloxstrap/Resources/Strings.Designer.cs
generated
@ -1,6 +1,7 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// 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
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// 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>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to See server details.
|
/// Looks up a localized string similar to See server details.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1024,4 +1024,7 @@ Selecting 'No' will ignore this warning and continue installation.</value>
|
|||||||
<data name="Menu.FastFlagEditor.InvalidPlaceFilter" xml:space="preserve">
|
<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>
|
<value>The entry for '{0}' is not valid as the place filter is not formatted correctly.</value>
|
||||||
</data>
|
</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>
|
</root>
|
@ -11,6 +11,7 @@ using Windows.Win32.Foundation;
|
|||||||
using Windows.Win32.UI.WindowsAndMessaging;
|
using Windows.Win32.UI.WindowsAndMessaging;
|
||||||
|
|
||||||
using Bloxstrap.Integrations;
|
using Bloxstrap.Integrations;
|
||||||
|
using Bloxstrap.Resources;
|
||||||
|
|
||||||
namespace Bloxstrap.UI.Elements.ContextMenu
|
namespace Bloxstrap.UI.Elements.ContextMenu
|
||||||
{
|
{
|
||||||
@ -108,13 +109,21 @@ namespace Bloxstrap.UI.Elements.ContextMenu
|
|||||||
|
|
||||||
private void LogTracerMenuItem_Click(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)
|
private void CloseRobloxMenuItem_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
MessageBoxResult result = Frontend.ShowMessageBox(
|
MessageBoxResult result = Frontend.ShowMessageBox(
|
||||||
Bloxstrap.Resources.Strings.ContextMenu_CloseRobloxMessage,
|
Strings.ContextMenu_CloseRobloxMessage,
|
||||||
MessageBoxImage.Warning,
|
MessageBoxImage.Warning,
|
||||||
MessageBoxButton.YesNo
|
MessageBoxButton.YesNo
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user