From 05b13ed177fab5dc646d0b36127b5387a38854a7 Mon Sep 17 00:00:00 2001 From: Christian Heinemann Date: Sat, 28 Dec 2024 08:15:24 +0100 Subject: [PATCH] layout bug in autosave window fixed --- source/Gui/AutosaveWindow.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/source/Gui/AutosaveWindow.cpp b/source/Gui/AutosaveWindow.cpp index 4635be63c..b4ea480d9 100644 --- a/source/Gui/AutosaveWindow.cpp +++ b/source/Gui/AutosaveWindow.cpp @@ -172,13 +172,11 @@ void AutosaveWindow::processTable() ImGui::PushStyleColor(ImGuiCol_Text, Const::TextLightDecentColor.Value); AlienImGui::Text("In queue"); ImGui::PopStyleColor(); - } - if (entry->state == SavepointState_InProgress) { + } else if (entry->state == SavepointState_InProgress) { ImGui::PushStyleColor(ImGuiCol_Text, Const::TextLightDecentColor.Value); AlienImGui::Text("In progress"); ImGui::PopStyleColor(); - } - if (entry->state == SavepointState_Persisted) { + } else if (entry->state == SavepointState_Persisted) { auto triggerLoadSavepoint = AlienImGui::ActionButton(AlienImGui::ActionButtonParameters().buttonText(ICON_FA_DOWNLOAD)); AlienImGui::Tooltip("Load save point", false); if (triggerLoadSavepoint) { @@ -187,10 +185,11 @@ void AutosaveWindow::processTable() ImGui::SameLine(); AlienImGui::Text(entry->name); - } - if (entry->state == SavepointState_Error) { + } else if (entry->state == SavepointState_Error) { AlienImGui::Text("Error"); } + ImGui::SameLine(); + ImGui::Dummy({0, scale(22.0f)}); ImGui::SameLine(); auto selected = _selectedEntry == entry;