only show prompt if there are files

This commit is contained in:
m 2022-12-21 14:34:58 -06:00
parent d8ff4697dc
commit 52151e9ed8

View File

@ -340,12 +340,6 @@ namespace party
bool download_files(const game::netadr_s& target, const utils::info_string& info, bool allow_download)
{
if (!allow_download)
{
confirm_user_download(target, info);
return true;
}
try
{
std::vector<download::file_t> files{};
@ -356,6 +350,12 @@ namespace party
if (files.size() > 0)
{
if (!allow_download)
{
confirm_user_download(target, info);
return true;
}
download::stop_download();
download::start_download(target, info, files);
return true;