From fe9aac7e297ee599268d3a199e8c9a4535afef1c Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Sun, 5 Apr 2026 19:01:09 -0700 Subject: [PATCH] overlay: fix cosmetic issue in options tab when there are no options for the game (#610) Number of columns was modified in #598 but it didn't correctly account for the case where a game doesn't have any game-specific options. --- src/spice2x/overlay/windows/config.cpp | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/spice2x/overlay/windows/config.cpp b/src/spice2x/overlay/windows/config.cpp index c23abf6..257a4b0 100644 --- a/src/spice2x/overlay/windows/config.cpp +++ b/src/spice2x/overlay/windows/config.cpp @@ -4872,12 +4872,24 @@ namespace overlay::windows { // check if empty if (options_count == 0) { ImGui::TableNextRow(); + + // option category + if (filter != nullptr) { + ImGui::TableNextColumn(); + ImGui::TextDisabled("-"); + } + + // name of option ImGui::TableNextColumn(); - ImGui::Indent(INDENT); - ImGui::TextDisabled("-"); - ImGui::Unindent(INDENT); - ImGui::TableNextColumn(); + if (filter == nullptr) { + ImGui::Indent(INDENT); + } ImGui::TextDisabled("-"); + if (filter == nullptr) { + ImGui::Unindent(INDENT); + } + + // widget ImGui::TableNextColumn(); ImGui::TextDisabled("-"); }