From 42df5c990c734cd4015b40bfd3595aa4725ed320 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Sat, 14 Nov 2020 17:41:43 +0100 Subject: [PATCH] make `loadbinds` context a force reset of everything fixes #5 --- bindED.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindED.cs b/bindED.cs index 451dded..903e7c5 100644 --- a/bindED.cs +++ b/bindED.cs @@ -34,7 +34,7 @@ namespace bindEDplugin } private static FileSystemWatcher? _watcher; - private static string Layout + private static string? Layout { get => _layout ??= _VA?.GetText("bindED.layout#") ?? "en-us"; set @@ -113,6 +113,9 @@ namespace bindEDplugin } else if (context == "loadbinds") { + // force reset everything + Layout = null; + Preset = null; LoadBinds(Binds); } else if (context == "missingbinds")