Merge pull request #4892 from aws-lumberyard-dev/TrackDownloadProgress

Project Manager track progress of, and cancel downloads
This commit is contained in:
AMZN-Phil
2021-10-22 15:53:29 -07:00
committed by GitHub
9 changed files with 122 additions and 28 deletions
@@ -63,6 +63,7 @@ namespace O3DE::ProjectManager
bool RemoveGemRepo(const QString& repoUri) override;
AZ::Outcome<QVector<GemRepoInfo>, AZStd::string> GetAllGemRepoInfos() override;
AZ::Outcome<void, AZStd::string> DownloadGem(const QString& gemName, std::function<void(int)> gemProgressCallback) override;
void CancelDownload() override;
private:
AZ_DISABLE_COPY_MOVE(PythonBindings);
@@ -91,5 +92,7 @@ namespace O3DE::ProjectManager
pybind11::handle m_editProjectProperties;
pybind11::handle m_download;
pybind11::handle m_pathlib;
bool m_requestCancelDownload = false;
};
}