feat: add DALAMUD_NO_CONTEXTMENU env var

This commit is contained in:
goaaats 2022-04-14 22:56:36 +02:00
parent c4bc791d6f
commit 0d0496bee1
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 9 additions and 1 deletions

View file

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