Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mscore/resourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ namespace Ms {
extern QString dataPath;
extern QString mscoreGlobalShare;

static constexpr int extensionDownloadTimeoutMs = 20 * 60 * 1000;

ResourceManager::ResourceManager(QWidget *parent) :
QDialog(parent)
{
Expand Down Expand Up @@ -379,7 +381,7 @@ void ResourceManager::downloadExtension()
QString localPath = QDir::tempPath() + "/" + path.split('/')[1];
QFile::remove(localPath);
dl.setLocalFile(localPath);
dl.download(true);
dl.download(true, extensionDownloadTimeoutMs);
bool saveFileRes = dl.saveFile();
bool verifyFileRes = saveFileRes && verifyFile(localPath, hash);
if(!verifyFileRes) {
Expand Down