chore: don't enable context menu hooks by default

This commit is contained in:
goaaats 2022-04-15 15:48:53 +02:00
parent 4b4c6d50e6
commit 58c63bfedf
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ namespace Dalamud.Configuration.Internal
/// <summary>
/// Gets a value indicating whether or not Dalamud context menus should be disabled.
/// </summary>
public static bool DalamudNoContextMenu { get; } = GetEnvironmentVariable("DALAMUD_NO_CONTEXTMENU");
public static bool DalamudDoContextMenu { get; } = GetEnvironmentVariable("DALAMUD_ENABLE_CONTEXTMENU");
private static bool GetEnvironmentVariable(string name)
=> bool.Parse(Environment.GetEnvironmentVariable(name) ?? "false");

View file

@ -428,7 +428,7 @@ namespace Dalamud.Game.Gui
Service<FlyTextGui>.Get().Enable();
Service<PartyFinderGui>.Get().Enable();
if (!EnvironmentConfiguration.DalamudNoContextMenu)
if (EnvironmentConfiguration.DalamudDoContextMenu)
Service<ContextMenu>.Get().Enable();
this.setGlobalBgmHook.Enable();