diff --git a/src/Application/Application_ProfileManager.cpp b/src/Application/Application_ProfileManager.cpp index ec3141d..7dc70d1 100644 --- a/src/Application/Application_ProfileManager.cpp +++ b/src/Application/Application_ProfileManager.cpp @@ -246,35 +246,25 @@ Application::drawBackupListPopup() { void Application::drawBackupFolder(const Managers::Vfs::Directory& dir) { if(dir.files().isEmpty() && dir.subdirs().isEmpty()) { - ImGui::TableNextRow(); - ImGui::TableNextColumn(); - ImGui::TextDisabled(""); - ImGui::TableNextColumn(); - ImGui::TextDisabled("--"); - ImGui::TableNextColumn(); - ImGui::TextDisabled("--"); - ImGui::TableNextColumn(); - ImGui::TextDisabled("--"); return; } - bool open = false; - - if(dir.name() != "") { + for(auto& subdir : dir.subdirs()) { ImGui::TableNextRow(); ImGui::TableNextColumn(); - open = ImGui::TreeNodeEx(dir.name().cbegin(), ImGuiTreeNodeFlags_SpanAllColumns); - ImGui::TableNextColumn(); - ImGui::TextDisabled("--"); - ImGui::TableNextColumn(); - ImGui::TextDisabled("--"); - ImGui::TableNextColumn(); - ImGui::TextDisabled("--"); - } + bool open = ImGui::TreeNodeEx(subdir.name().cbegin(), ImGuiTreeNodeFlags_SpanAllColumns); + + ImGui::TableNextColumn(); + ImGui::TextDisabled("--"); + + ImGui::TableNextColumn(); + ImGui::TextDisabled("--"); + + ImGui::TableNextColumn(); + ImGui::TextDisabled("--"); - for(auto& subdir : dir.subdirs()) { - drawBackupFolder(subdir); if(open) { + drawBackupFolder(subdir); ImGui::TreePop(); } } @@ -283,7 +273,7 @@ Application::drawBackupFolder(const Managers::Vfs::Directory& ImGui::TableNextRow(); ImGui::TableNextColumn(); ImGui::TreeNodeEx(file->company.cbegin(), ImGuiTreeNodeFlags_SpanAllColumns|ImGuiTreeNodeFlags_Leaf| - ImGuiTreeNodeFlags_Bullet|ImGuiTreeNodeFlags_NoTreePushOnOpen); + ImGuiTreeNodeFlags_NoTreePushOnOpen); ImGui::TableNextColumn(); ImGui::Text("%.4i-%.2i-%.2i %.2i:%.2i:%.2i",