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.
This commit is contained in:
bicarus
2026-04-05 19:01:09 -07:00
committed by GitHub
parent f3d887ebcf
commit fe9aac7e29
+16 -4
View File
@@ -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("-");
}