diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-01-07 02:43:25 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-01-07 02:43:25 +0100 |
commit | 012b007e56c8121e5dc6434765f16647edd23585 (patch) | |
tree | 674c443edfdfba59f8d1c363d20480d61099ca52 /logic/updater | |
parent | 28c35ea0db3b38a050f18c8aa868061202f931da (diff) | |
download | MultiMC-012b007e56c8121e5dc6434765f16647edd23585.tar MultiMC-012b007e56c8121e5dc6434765f16647edd23585.tar.gz MultiMC-012b007e56c8121e5dc6434765f16647edd23585.tar.lz MultiMC-012b007e56c8121e5dc6434765f16647edd23585.tar.xz MultiMC-012b007e56c8121e5dc6434765f16647edd23585.zip |
Do not log each and every possible update. Only the latest one.
Diffstat (limited to 'logic/updater')
-rw-r--r-- | logic/updater/UpdateChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/updater/UpdateChecker.cpp b/logic/updater/UpdateChecker.cpp index 489e7769..8a280dd1 100644 --- a/logic/updater/UpdateChecker.cpp +++ b/logic/updater/UpdateChecker.cpp @@ -142,8 +142,6 @@ void UpdateChecker::updateCheckFinished(bool notifyNoUpdate) if (newestVersion.value("Id").toVariant().toInt() < version.value("Id").toVariant().toInt()) { - QLOG_DEBUG() << "Found newer version with ID" - << version.value("Id").toVariant().toInt(); newestVersion = version; } } @@ -153,6 +151,7 @@ void UpdateChecker::updateCheckFinished(bool notifyNoUpdate) int newBuildNumber = newestVersion.value("Id").toVariant().toInt(); if (newBuildNumber != MMC->version().build) { + QLOG_DEBUG() << "Found newer version with ID" << newBuildNumber; // Update! emit updateAvailable(m_repoUrl, newestVersion.value("Name").toVariant().toString(), newBuildNumber); @@ -262,3 +261,4 @@ void UpdateChecker::chanListDownloadFailed() QLOG_ERROR() << "Failed to download channel list."; emit channelListLoaded(); } + |