MP Lobby: avoid unnecessary cache rebuild if no required addons were installed
I was unconditionally reloading the cache even if there were a reason ad_hoc_addon_fetch_session failed. The cache will no longer be reloaded if said function didn't actually install anything. Fixes #2477.
This commit is contained in:
parent
edd6b8d31c
commit
c5e95d3b24
1 changed files with 1 additions and 3 deletions
|
@ -262,9 +262,7 @@ bool handle_addon_requirements_gui(const std::vector<mp::game_info::required_add
|
|||
|
||||
if(gui2::show_message(e_title, err_msg, message::yes_no_buttons, true) == gui2::window::OK) {
|
||||
// Begin download session
|
||||
ad_hoc_addon_fetch_session(needs_download);
|
||||
|
||||
return true;
|
||||
return ad_hoc_addon_fetch_session(needs_download);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue