diff --git a/examples/qtwidgets/QtUpdateWidget.cpp b/examples/qtwidgets/QtUpdateWidget.cpp index 7b0b541..a95d0ba 100644 --- a/examples/qtwidgets/QtUpdateWidget.cpp +++ b/examples/qtwidgets/QtUpdateWidget.cpp @@ -67,7 +67,7 @@ class StartPage : public QWidget { checkForUpdateBtn->setText(tr("Check For Updates")); checkForUpdateBtn->setDefault(true); QObject::connect(checkForUpdateBtn, &QPushButton::clicked, this, [this, &controller]() { - emit controller.checkForUpdates(); + emit controller.checkForUpdate(); }); } diff --git a/lib/include/oclero/QtUpdateController.hpp b/lib/include/oclero/QtUpdateController.hpp index 5f5a836..589249c 100644 --- a/lib/include/oclero/QtUpdateController.hpp +++ b/lib/include/oclero/QtUpdateController.hpp @@ -54,7 +54,8 @@ class QtUpdateController : public QObject { public slots: void cancel(); - void checkForUpdates(); + void checkForUpdate(); + void forceCheckForUpdate(); void downloadUpdate(); void installUpdate(); diff --git a/lib/src/oclero/QtUpdateController.cpp b/lib/src/oclero/QtUpdateController.cpp index 9eff512..c5fb514 100644 --- a/lib/src/oclero/QtUpdateController.cpp +++ b/lib/src/oclero/QtUpdateController.cpp @@ -141,7 +141,11 @@ void QtUpdateController::cancel() { emit closeDialogRequested(); } -void QtUpdateController::checkForUpdates() { +void QtUpdateController::checkForUpdate() { + _updater.checkForUpdate(); +} + +void QtUpdateController::forceCheckForUpdate() { _updater.forceCheckForUpdate(); }