mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
added #ifdef back in for windows updates
This commit is contained in:
parent
8f34a0af59
commit
5155039293
|
@ -42,7 +42,7 @@ void UpdateManager::installUpdates()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QMessageBox *box = new QMessageBox(QMessageBox::Information, "Chatterino Update",
|
QMessageBox *box = new QMessageBox(QMessageBox::Information, "Chatterino Update",
|
||||||
"Chatterino is downloading the update "
|
"Chatterino is downloading the update "
|
||||||
"in the background and will run the "
|
"in the background and will run the "
|
||||||
|
@ -84,12 +84,12 @@ void UpdateManager::installUpdates()
|
||||||
});
|
});
|
||||||
this->setStatus_(Downloading);
|
this->setStatus_(Downloading);
|
||||||
req.execute();
|
req.execute();
|
||||||
//#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateManager::checkForUpdates()
|
void UpdateManager::checkForUpdates()
|
||||||
{
|
{
|
||||||
//#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QString url = "https://notitia.chatterino.com/version/chatterino/" CHATTERINO_OS "/stable";
|
QString url = "https://notitia.chatterino.com/version/chatterino/" CHATTERINO_OS "/stable";
|
||||||
|
|
||||||
util::NetworkRequest req(url);
|
util::NetworkRequest req(url);
|
||||||
|
@ -134,7 +134,7 @@ void UpdateManager::checkForUpdates()
|
||||||
});
|
});
|
||||||
this->setStatus_(Searching);
|
this->setStatus_(Searching);
|
||||||
req.execute();
|
req.execute();
|
||||||
//#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateManager::UpdateStatus UpdateManager::getStatus() const
|
UpdateManager::UpdateStatus UpdateManager::getStatus() const
|
||||||
|
|
Loading…
Reference in a new issue