Skip to content

Commit

Permalink
Unify the method names
Browse files Browse the repository at this point in the history
  • Loading branch information
oclero committed Jun 23, 2022
1 parent 3a41d56 commit eedd9a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/qtwidgets/QtUpdateWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down
3 changes: 2 additions & 1 deletion lib/include/oclero/QtUpdateController.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class QtUpdateController : public QObject {

public slots:
void cancel();
void checkForUpdates();
void checkForUpdate();
void forceCheckForUpdate();
void downloadUpdate();
void installUpdate();

Expand Down
6 changes: 5 additions & 1 deletion lib/src/oclero/QtUpdateController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ void QtUpdateController::cancel() {
emit closeDialogRequested();
}

void QtUpdateController::checkForUpdates() {
void QtUpdateController::checkForUpdate() {
_updater.checkForUpdate();
}

void QtUpdateController::forceCheckForUpdate() {
_updater.forceCheckForUpdate();
}

Expand Down

0 comments on commit eedd9a2

Please sign in to comment.