diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-07-14 00:57:54 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-07-14 00:57:54 +0200 |
commit | 3821569363bdc13c59704c2f37c5de9fee5a21e2 (patch) | |
tree | c30fd938bf3f7076084916a1a0980115341445d6 /gui/MainWindow.cpp | |
parent | d8d6f5929b1a0104b31d381a45799849c6d82636 (diff) | |
download | MultiMC-3821569363bdc13c59704c2f37c5de9fee5a21e2.tar MultiMC-3821569363bdc13c59704c2f37c5de9fee5a21e2.tar.gz MultiMC-3821569363bdc13c59704c2f37c5de9fee5a21e2.tar.lz MultiMC-3821569363bdc13c59704c2f37c5de9fee5a21e2.tar.xz MultiMC-3821569363bdc13c59704c2f37c5de9fee5a21e2.zip |
Show changelog even when there are no new updates available.
Diffstat (limited to 'gui/MainWindow.cpp')
-rw-r--r-- | gui/MainWindow.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gui/MainWindow.cpp b/gui/MainWindow.cpp index bee250c4..552f6a2d 100644 --- a/gui/MainWindow.cpp +++ b/gui/MainWindow.cpp @@ -305,12 +305,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi auto updater = MMC->updateChecker(); connect(updater.get(), &UpdateChecker::updateAvailable, this, &MainWindow::updateAvailable); - connect(updater.get(), &UpdateChecker::noUpdateFound, [this]() - { - CustomMessageBox::selectable( - this, tr("No update found."), - tr("No MultiMC update was found!\nYou are using the latest version."))->exec(); - }); + connect(updater.get(), &UpdateChecker::noUpdateFound, this, + &MainWindow::updateNotAvailable); // if automatic update checks are allowed, start one. if (MMC->settings()->get("AutoUpdate").toBool()) on_actionCheckUpdate_triggered(); @@ -621,6 +617,12 @@ void MainWindow::updateAvailable(QString repo, QString versionName, int versionI } } +void MainWindow::updateNotAvailable() +{ + UpdateDialog dlg(false); + dlg.exec(); +} + QList<int> stringToIntList(const QString &string) { QStringList split = string.split(',', QString::SkipEmptyParts); |