mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-14 17:40:26 -05:00
Include the version number in the uid of the HttpSynchronization (closes #2081)
This commit is contained in:
@@ -117,6 +117,10 @@ void HttpSynchronization::cancel() {
|
||||
_state = State::Unsynced;
|
||||
}
|
||||
|
||||
std::string HttpSynchronization::generateUid() {
|
||||
return fmt::format("{}/{}", _identifier, _version);
|
||||
}
|
||||
|
||||
bool HttpSynchronization::trySyncFromUrl(std::string listUrl) {
|
||||
HttpMemoryDownload fileListDownload(std::move(listUrl));
|
||||
fileListDownload.onProgress([&c = _shouldCancel](int64_t, std::optional<int64_t>) {
|
||||
|
||||
Reference in New Issue
Block a user