History

move checkForUpdates to menu to have option in menu

Stephen Birarda committed 13 years ago

Commit 65a63fb1 parent 54d63713 files · +12 −7Browse files

Showing the changes to interface/src/Menu.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Menu.cpp+7−0
@@ -20,6 +20,7 @@ · 19 unmodified lines
2020 #include <QStandardPaths>
2121
2222 #include "Application.h"
23+#include "fvupdater.h"
2324 #include "PairingHandler.h"
2425 #include "Menu.h"
2526 #include "Util.h"
@@ -459,6 +460,12 @@ void Menu::exportSettings() { · 433 unmodified lines
459460 }
460461 }
461462
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+}
462469
463470 void Menu::loadAction(QSettings* set, QAction* action) {
464471 if (action->isChecked() != set->value(action->text(), action->isChecked()).toBool()) {