mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] updmanager: exclude parameters from messages
This commit is contained in:
@ -330,14 +330,14 @@ void CSvcManager::init()
|
||||
tstring ext = m_packageData->fileType == _T("iss") ? _T(".exe") : m_packageData->fileType == _T("msi") ? _T(".msi") : ARCHIVE_EXT;
|
||||
m_pDownloader->downloadFile(m_packageData->packageUrl, generateTmpFileName(ext));
|
||||
}
|
||||
NS_Logger::WriteLog(_T("Received MSG_LoadUpdates, URL: ") + params[1]);
|
||||
NS_Logger::WriteLog(_T("Received MSG_LoadUpdates, URL: ") + m_packageData->packageUrl);
|
||||
break;
|
||||
}
|
||||
case MSG_RequestContentLenght: {
|
||||
__GLOBAL_LOCK
|
||||
if (m_pDownloader)
|
||||
m_pDownloader->queryContentLenght(params[1]);
|
||||
NS_Logger::WriteLog(_T("Received MSG_RequestContentLenght, URL: ") + params[1]);
|
||||
m_pDownloader->queryContentLenght(m_packageData->packageUrl);
|
||||
NS_Logger::WriteLog(_T("Received MSG_RequestContentLenght, URL: ") + m_packageData->packageUrl);
|
||||
break;
|
||||
}
|
||||
case MSG_StopDownload: {
|
||||
|
||||
@ -820,7 +820,7 @@ void CUpdateManager::onLoadCheckFinished(const QString &json)
|
||||
m_packageData->isInstallable = root.value("isInstallable").toBool();
|
||||
|
||||
clearTempFiles(m_packageData->isInstallable && isSavedPackageValid() ? m_savedPackageData->fileName : "");
|
||||
if (m_packageData->packageUrl.empty() || !m_socket->sendMessage(MSG_RequestContentLenght, WStrToTStr(m_packageData->packageUrl))) {
|
||||
if (m_packageData->packageUrl.empty() || !m_socket->sendMessage(MSG_RequestContentLenght)) {
|
||||
m_packageData->fileSize = "--";
|
||||
onCheckFinished(false, true, m_packageData->version, "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user