mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 05:47:43 +01:00
feat: add DALAMUD_NO_CONTEXTMENU env var
This commit is contained in:
parent
c4bc791d6f
commit
0d0496bee1
2 changed files with 9 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue