Merge pull request #4802 from shikadiqueen/bug/3273

gui2/addon_manager: Re-read add-on versions after each update batch
This commit is contained in:
Iris Morelle 2020-03-15 05:33:17 -03:00 committed by GitHub
commit 64a96d2eba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -1,4 +1,7 @@
## Version 1.15.3+dev
### Add-ons client
* Ensure the client doesn't re-download dependencies that have just been updated during an Update All
run by re-reading add-on versions after each update batch (issue #3273).
### Campaigns
* Delfador's Memoirs:
* S12: Fix a few case where dialog and events sound odd or fire out of order (issue #4614)

View file

@ -704,6 +704,13 @@ void addon_manager::update_all_addons(window& window)
if(tracking_info_[a.first].state == ADDON_INSTALLED_UPGRADABLE) {
addons_client::install_result result = client_.install_addon_with_checks(addons_, a.second);
if(result.wml_changed) {
// Updating an add-on may have resulted in its dependencies being updated
// as well, so we need to reread version info blocks afterwards to make sure
// we don't try to re-download newly updated add-ons.
refresh_addon_version_info_cache();
}
// Take note if any wml_changes occurred
need_wml_cache_refresh_ |= result.wml_changed;
}