mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
reverted update code to old state
This commit is contained in:
parent
df2cfa73f0
commit
1501da7e72
|
@ -268,8 +268,8 @@ void Updates::checkForUpdates()
|
||||||
return Failure;
|
return Failure;
|
||||||
}
|
}
|
||||||
this->updateExe_ = updateExe_val.toString();
|
this->updateExe_ = updateExe_val.toString();
|
||||||
#endif
|
|
||||||
#ifdef Q_OS_WIN
|
# ifdef Q_OS_WIN
|
||||||
/// Windows portable
|
/// Windows portable
|
||||||
QJsonValue portable_val = object.value("portable_download");
|
QJsonValue portable_val = object.value("portable_download");
|
||||||
if (!portable_val.isString())
|
if (!portable_val.isString())
|
||||||
|
@ -279,15 +279,15 @@ void Updates::checkForUpdates()
|
||||||
return Failure;
|
return Failure;
|
||||||
}
|
}
|
||||||
this->updatePortable_ = portable_val.toString();
|
this->updatePortable_ = portable_val.toString();
|
||||||
#endif
|
# endif
|
||||||
#ifdef Q_OS_LINUX
|
|
||||||
|
#elif defined Q_OS_LINUX
|
||||||
QJsonValue updateGuide_val = object.value("updateguide");
|
QJsonValue updateGuide_val = object.value("updateguide");
|
||||||
if (updateGuide_val.isString())
|
if (updateGuide_val.isString())
|
||||||
{
|
{
|
||||||
this->updateGuideLink_ = updateGuide_val.toString();
|
this->updateGuideLink_ = updateGuide_val.toString();
|
||||||
}
|
}
|
||||||
#endif
|
#else
|
||||||
#if !defined(Q_OS_WIN) && !defined(Q_OS_MACOS) && !defined(Q_OS_LINUX)
|
|
||||||
return Failure;
|
return Failure;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue