fix: 尝试修复详情页经常加载失败的问题

关闭传输超时上限,未下载完成则持续等待;可能存在严重问题......
This commit is contained in:
忘记、过去 2021-06-29 14:05:01 +08:00
parent 78c5d31a29
commit 10b758d8f3

View File

@ -118,7 +118,7 @@ void SpkAppInfoLoaderThread::run()
Widget::sendNotification(tr("Failed to load application icon.")); Widget::sendNotification(tr("Failed to load application icon."));
}) })
.block() .block()
.timeout(5 * 100) .timeout(-1)
.exec(); .exec();
@ -148,7 +148,7 @@ void SpkAppInfoLoaderThread::run()
// Widget::sendNotification(tr("Failed to load application screenshot.")); // Widget::sendNotification(tr("Failed to load application screenshot."));
}) })
.block() .block()
.timeout(4 * 100) .timeout(-1)
.exec(); .exec();
} }
emit finishAllLoading(); emit finishAllLoading();
@ -161,8 +161,8 @@ void SpkAppInfoLoaderThread::run()
Widget::sendNotification(tr("Failed to download app info. Please check internet connection.")); Widget::sendNotification(tr("Failed to download app info. Please check internet connection."));
}) })
.timeout(5 * 100) .block()
.block() .timeout(-1)
.exec(); .exec();
} }