make loadbinds context a force reset of everything

fixes #5
This commit is contained in:
alterNERDtive 2020-11-14 17:41:43 +01:00
parent 620bc2b83f
commit 42df5c990c

View file

@ -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")