Skip to content

Commit

Permalink
layout bug in autosave window fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Dec 28, 2024
1 parent 72b56fd commit 05b13ed
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions source/Gui/AutosaveWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 05b13ed

Please sign in to comment.