mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
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:
@@ -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("-");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user