Merge pull request #2415 from Trial97/configure_timeout

Add config for transfer timeout
This commit is contained in:
Alexandru Ionut Tripon
2024-06-30 22:26:19 +03:00
committed by GitHub
4 changed files with 29 additions and 5 deletions

View File

@ -107,7 +107,11 @@ void NetRequest::executeTask()
}
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
#if defined(LAUNCHER_APPLICATION)
request.setTransferTimeout(APPLICATION->settings()->get("RequestTimeout").toInt() * 1000);
#else
request.setTransferTimeout();
#endif
#endif
m_last_progress_time = m_clock.now();