From 65b65f572d4a6d69ba53cc11891cc3b6e2dff6f8 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Wed, 26 Jul 2023 18:11:54 +0200 Subject: [PATCH] Fix context menu disabling. --- Glamourer/Interop/ContextMenuService.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Glamourer/Interop/ContextMenuService.cs b/Glamourer/Interop/ContextMenuService.cs index da4ce48..55bd0ba 100644 --- a/Glamourer/Interop/ContextMenuService.cs +++ b/Glamourer/Interop/ContextMenuService.cs @@ -21,7 +21,6 @@ public class ContextMenuService : IDisposable private readonly StateManager _state; private readonly ObjectManager _objects; private readonly GameGui _gameGui; - private readonly Configuration _config; public ContextMenuService(ItemManager items, StateManager state, ObjectManager objects, GameGui gameGui, Configuration config) { @@ -29,8 +28,8 @@ public class ContextMenuService : IDisposable _state = state; _objects = objects; _gameGui = gameGui; - _config = config; - Enable(); + if (config.EnableGameContextMenu) + Enable(); } public void Enable()