summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorrobotbrainify <robotbrainify@gmail.com>2013-12-24 16:00:07 -0500
committerrobotbrainify <robotbrainify@gmail.com>2013-12-24 16:00:07 -0500
commitb1ec7841e04f2a60f54895e1646bc33486fd9fbf (patch)
treed8b5f21485b997cc4ab5b2251ce22f92277ca0e6 /gui
parent027aafc3c1fc5e78c91ee439cd38562387f7ed9f (diff)
downloadMultiMC-b1ec7841e04f2a60f54895e1646bc33486fd9fbf.tar
MultiMC-b1ec7841e04f2a60f54895e1646bc33486fd9fbf.tar.gz
MultiMC-b1ec7841e04f2a60f54895e1646bc33486fd9fbf.tar.lz
MultiMC-b1ec7841e04f2a60f54895e1646bc33486fd9fbf.tar.xz
MultiMC-b1ec7841e04f2a60f54895e1646bc33486fd9fbf.zip
Get the updater to display a no update found message.
Diffstat (limited to 'gui')
-rw-r--r--gui/MainWindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp
index 179f881f..7241f26b 100644
--- a/gui/MainWindow.cpp
+++ b/gui/MainWindow.cpp
@@ -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()