Get the updater to display a no update found message.

This commit is contained in:
robotbrainify
2013-12-24 16:00:07 -05:00
parent 027aafc3c1
commit b1ec7841e0
4 changed files with 53 additions and 31 deletions

View File

@ -681,7 +681,10 @@ void MainWindow::on_actionConfig_Folder_triggered()
void MainWindow::on_actionCheckUpdate_triggered()
{
auto updater = MMC->updateChecker();
updater->checkForUpdate();
connect(updater.get(), &UpdateChecker::noUpdateFound, [this](){
CustomMessageBox::selectable(this, "No update found.", "No MultiMC update was found!\nYou are using the latest version.")->exec();
});
updater->checkForUpdate(true);
}
void MainWindow::on_actionSettings_triggered()