Fix overlay key being unbindable
@@ -156,7 +156,11 @@ void Bindings::Update()
}
};
- const auto onUnBind = [this, &binding, &modBind] {
+ if (modBind == s_overlayToggleModBind)
+ UpdateAndDrawBinding(modBind, binding, onFinaizeBind, nullptr, 10.0f);
+ else
+ {
+ auto onUnBind = [this, &binding, &modBind] {
if (binding.IsBinding)
{
m_bindings.StopRecordingBind();
@@ -170,6 +174,7 @@ void Bindings::Update()
}
}
}
+}
void Bindings::Save()
{
@@ -326,7 +331,7 @@ void Bindings::UpdateAndDrawBinding(const VKModBind& acModBind, VKBindInfo& aVKB
m_bindings.Bind(aVKBindInfo.CodeBind, acModBind);
aVKBindInfo.IsBinding = false;
- };
+ }
const bool bound = aVKBindInfo.CodeBind != 0;
const bool modified = aVKBindInfo.CodeBind != aVKBindInfo.SavedCodeBind;
