mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
chore: don't enable context menu hooks by default
This commit is contained in:
parent
4b4c6d50e6
commit
58c63bfedf
2 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ namespace Dalamud.Configuration.Internal
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether or not Dalamud context menus should be disabled.
|
/// Gets a value indicating whether or not Dalamud context menus should be disabled.
|
||||||
/// </summary>
|
/// </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)
|
private static bool GetEnvironmentVariable(string name)
|
||||||
=> bool.Parse(Environment.GetEnvironmentVariable(name) ?? "false");
|
=> bool.Parse(Environment.GetEnvironmentVariable(name) ?? "false");
|
||||||
|
|
|
||||||
|
|
@ -428,7 +428,7 @@ namespace Dalamud.Game.Gui
|
||||||
Service<FlyTextGui>.Get().Enable();
|
Service<FlyTextGui>.Get().Enable();
|
||||||
Service<PartyFinderGui>.Get().Enable();
|
Service<PartyFinderGui>.Get().Enable();
|
||||||
|
|
||||||
if (!EnvironmentConfiguration.DalamudNoContextMenu)
|
if (EnvironmentConfiguration.DalamudDoContextMenu)
|
||||||
Service<ContextMenu>.Get().Enable();
|
Service<ContextMenu>.Get().Enable();
|
||||||
|
|
||||||
this.setGlobalBgmHook.Enable();
|
this.setGlobalBgmHook.Enable();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue