Showing the changes to interface/src/Menu.cpp (1 of 3 files). Show all
Unified · Split
| @@ -20,6 +20,7 @@ · 19 unmodified lines | |||
| 20 | #include <QStandardPaths> | 20 | #include <QStandardPaths> |
| 21 | 21 | ||
| 22 | #include "Application.h" | 22 | #include "Application.h" |
| 23 | #include "fvupdater.h" | ||
| 23 | #include "PairingHandler.h" | 24 | #include "PairingHandler.h" |
| 24 | #include "Menu.h" | 25 | #include "Menu.h" |
| 25 | #include "Util.h" | 26 | #include "Util.h" |
| @@ -459,6 +460,12 @@ void Menu::exportSettings() { · 433 unmodified lines | |||
| 459 | } | 460 | } |
| 460 | } | 461 | } |
| 461 | 462 | ||
| 463 | void Menu::checkForUpdates() { | ||
| 464 | qDebug() << "Checking if there are available updates.\n"; | ||
| 465 | // if this is a release OS X build use fervor to check for an update | ||
| 466 | FvUpdater::sharedUpdater()->SetFeedURL("https://s3-us-west-1.amazonaws.com/highfidelity/appcast.xml"); | ||
| 467 | FvUpdater::sharedUpdater()->CheckForUpdatesSilent(); | ||
| 468 | } | ||
| 462 | 469 | ||
| 463 | void Menu::loadAction(QSettings* set, QAction* action) { | 470 | void Menu::loadAction(QSettings* set, QAction* action) { |
| 464 | if (action->isChecked() != set->value(action->text(), action->isChecked()).toBool()) { | 471 | if (action->isChecked() != set->value(action->text(), action->isChecked()).toBool()) { |