From 98a569f434d258bcfeb0e8fbca13bd859df05474 Mon Sep 17 00:00:00 2001 From: Andrej Redeky Date: Fri, 2 Apr 2021 19:28:01 +0200 Subject: [PATCH] Fix reworked Bindings widget --- src/overlay/widgets/Bindings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/overlay/widgets/Bindings.cpp b/src/overlay/widgets/Bindings.cpp index 208f326c..f57815ef 100644 --- a/src/overlay/widgets/Bindings.cpp +++ b/src/overlay/widgets/Bindings.cpp @@ -132,8 +132,8 @@ bool Bindings::DrawBindings(bool aDrawHotkeys) if (m_luaVMReady) { - const std::string_view emptyMessageArg1 { (aDrawHotkeys) ? ("hotkeys") : ("inputs") }; - const std::string_view emptyMessageArg2 { (aDrawHotkeys) ? ("inputs") : ("hotkeys") }; + const auto emptyMessageArg1 { (aDrawHotkeys) ? ("hotkeys") : ("inputs") }; + const auto emptyMessageArg2 { (aDrawHotkeys) ? ("inputs") : ("hotkeys") }; std::string_view prevMod{""}; size_t modBindsForType { 0 }; @@ -165,7 +165,7 @@ bool Bindings::DrawBindings(bool aDrawHotkeys) // add vertical spacing when this is not first iteration and check if we drawn anything if (!prevMod.empty()) { - if (!modBindsForType) + if (!modBindsForType && (prevMod != "cet")) { // we did not draw anything, write appropriate message so it is not empty ImGui::SetCursorPosX(ImGui::GetCursorPosX() + 10.0f);