mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win] refactoring csvcmanager.cpp
This commit is contained in:
@ -145,8 +145,8 @@ void CSvcManager::init()
|
||||
case MSG_LoadUpdates: {
|
||||
m_downloadMode = Mode::DOWNLOAD_UPDATES;
|
||||
if (m_pDownloader) {
|
||||
wstring ext = (params[2] == TEXT("archive")) ? TEXT(".zip") :
|
||||
(params[2] == TEXT("msi")) ? TEXT(".msi") : TEXT(".exe");
|
||||
wstring ext = (params[2] == TEXT("iss")) ? TEXT(".exe") :
|
||||
(params[2] == TEXT("msi")) ? TEXT(".msi") : TEXT(".zip");
|
||||
m_pDownloader->downloadFile(params[1], generateTmpFileName(ext));
|
||||
}
|
||||
NS_Logger::WriteLog(L"Received MSG_LoadUpdates, URL: " + params[1]);
|
||||
|
||||
Reference in New Issue
Block a user