mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 10:29:59 +03:00
Get rid of long rebuilds because of minor cmake config changes
This commit is contained in:
parent
ad9d082f57
commit
42e305bb9d
14 changed files with 206 additions and 192 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include "UpdateChecker.h"
|
||||
|
||||
#include "MultiMC.h"
|
||||
#include "Config.h"
|
||||
|
||||
#include "logger/QsLog.h"
|
||||
|
||||
|
|
@ -30,7 +31,7 @@
|
|||
|
||||
UpdateChecker::UpdateChecker()
|
||||
{
|
||||
m_channelListUrl = CHANLIST_URL;
|
||||
m_channelListUrl = BuildConfig.CHANLIST_URL;
|
||||
m_updateChecking = false;
|
||||
m_chanListLoading = false;
|
||||
m_checkUpdateWaiting = false;
|
||||
|
|
@ -148,7 +149,7 @@ void UpdateChecker::updateCheckFinished(bool notifyNoUpdate)
|
|||
// We've got the version with the greatest ID number. Now compare it to our current build
|
||||
// number and update if they're different.
|
||||
int newBuildNumber = newestVersion.value("Id").toVariant().toInt();
|
||||
if (newBuildNumber != MMC->version().build)
|
||||
if (newBuildNumber != BuildConfig.VERSION_BUILD)
|
||||
{
|
||||
QLOG_DEBUG() << "Found newer version with ID" << newBuildNumber;
|
||||
// Update!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue