2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 22:27:42 +00:00

Initial Options tab, CVar dialog

This commit is contained in:
2020-04-15 02:13:11 -04:00
parent 4c178bee84
commit 3487423d78
12 changed files with 742 additions and 192 deletions

View File

@@ -47,7 +47,7 @@ static const QString Domain = QStringLiteral("https://releases.axiodl.com/");
static const QString Index = QStringLiteral("index.txt");
void DownloadManager::fetchIndex() {
if (m_indexInProgress) {
if (m_indexInProgress != nullptr) {
return;
}
@@ -64,7 +64,7 @@ void DownloadManager::fetchIndex() {
}
void DownloadManager::fetchBinary(const QString& str, const QString& outPath) {
if (m_binaryInProgress) {
if (m_binaryInProgress != nullptr) {
return;
}
@@ -80,7 +80,7 @@ void DownloadManager::fetchBinary(const QString& str, const QString& outPath) {
connect(m_binaryInProgress, &QNetworkReply::encrypted, this, &DownloadManager::binaryValidateCert);
connect(m_binaryInProgress, &QNetworkReply::downloadProgress, this, &DownloadManager::binaryDownloadProgress);
if (m_progBar) {
if (m_progBar != nullptr) {
m_progBar->setEnabled(true);
m_progBar->setValue(0);
}