Skip to content

Commit

Permalink
Fix reworked Bindings widget
Browse files Browse the repository at this point in the history
  • Loading branch information
WSSDude committed Apr 2, 2021
1 parent f3fb4f4 commit 98a569f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/overlay/widgets/Bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 98a569f

Please sign in to comment.