[dlt] Add deselect/select all buttons to download view (#4499)

This commit is contained in:
Peter Johnson
2022-10-22 22:12:47 -07:00
committed by GitHub
parent 60a29dcb99
commit 335188c652

View File

@@ -75,6 +75,20 @@ void Downloader::DisplayRemoteDirSelector() {
m_cv.notify_all();
}
ImGui::SameLine();
if (ImGui::Button("Deselect All")) {
for (auto&& download : m_downloadList) {
download.enabled = false;
}
}
ImGui::SameLine();
if (ImGui::Button("Select All")) {
for (auto&& download : m_downloadList) {
download.enabled = true;
}
}
// Remote directory text box
ImGui::SetNextItemWidth(ImGui::GetFontSize() * 20);
if (ImGui::InputText("Remote Dir", &m_remoteDir,