diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2022-04-18 19:07:52 +0200 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2022-04-18 19:35:35 +0200 |
commit | e2dc0a2c07804a916edbc90d9fe67edcb07c26b8 (patch) | |
tree | e1d1280eeea6fb63f1bb8ec1da58e648c432ebe6 /utils/rbutilqt/base/zipinstaller.cpp | |
parent | 1155851ffbd11585c1e2fd376fd77d5a6fe627fc (diff) | |
download | rockbox-e2dc0a2c07804a916edbc90d9fe67edcb07c26b8.tar.gz rockbox-e2dc0a2c07804a916edbc90d9fe67edcb07c26b8.zip |
rbutil: Make zip install log less noisy.
No need to show a separate entry when a cached file has been used, do it
the same way as bootloader downloads do.
Change-Id: I42a21a37474a778975e82af0102e0152677a0343
Diffstat (limited to 'utils/rbutilqt/base/zipinstaller.cpp')
-rw-r--r-- | utils/rbutilqt/base/zipinstaller.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/rbutilqt/base/zipinstaller.cpp b/utils/rbutilqt/base/zipinstaller.cpp index ba0b89121c..4ca8ce8688 100644 --- a/utils/rbutilqt/base/zipinstaller.cpp +++ b/utils/rbutilqt/base/zipinstaller.cpp | |||
@@ -116,14 +116,17 @@ void ZipInstaller::downloadDone(QNetworkReply::NetworkError error) | |||
116 | emit done(true); | 116 | emit done(true); |
117 | return; | 117 | return; |
118 | } | 118 | } |
119 | if(m_getter->isCached()) | ||
120 | emit logItem(tr("Cached file used."), LOGINFO); | ||
121 | if(error != QNetworkReply::NoError) { | 119 | if(error != QNetworkReply::NoError) { |
122 | emit logItem(tr("Download error: %1").arg(m_getter->errorString()), LOGERROR); | 120 | emit logItem(tr("Download error: %1").arg(m_getter->errorString()), LOGERROR); |
123 | emit done(true); | 121 | emit done(true); |
124 | return; | 122 | return; |
125 | } | 123 | } |
126 | else emit logItem(tr("Download finished."),LOGOK); | 124 | else if(m_getter->isCached()) { |
125 | emit logItem(tr("Download finished (cache used)."), LOGOK); | ||
126 | } | ||
127 | else { | ||
128 | emit logItem(tr("Download finished."),LOGOK); | ||
129 | } | ||
127 | QCoreApplication::processEvents(); | 130 | QCoreApplication::processEvents(); |
128 | if(m_unzip) { | 131 | if(m_unzip) { |
129 | // unzip downloaded file | 132 | // unzip downloaded file |