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
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
463void 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
463void Menu::loadAction(QSettings* set, QAction* action) {470void 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()) {