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/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+4−7
@@ -64,7 +64,6 @@ · 63 unmodified lines
64#include "renderer/ProgramObject.h"64#include "renderer/ProgramObject.h"
65#include "ui/TextRenderer.h"65#include "ui/TextRenderer.h"
66#include "Swatch.h"66#include "Swatch.h"
67#include "fvupdater.h"
68 67
69using namespace std;68using namespace std;
70 69
@@ -209,16 +208,14 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : · 138 unmodified lines
209 NodeList::getInstance()->startSilentNodeRemovalThread();208 NodeList::getInstance()->startSilentNodeRemovalThread();
210 209
211 _window->setCentralWidget(_glWidget);210 _window->setCentralWidget(_glWidget);
212
213#if defined(Q_OS_MAC) && defined(QT_NO_DEBUG)
214 // if this is a release OS X build use fervor to check for an update
215 FvUpdater::sharedUpdater()->SetFeedURL("https://s3-us-west-1.amazonaws.com/highfidelity/appcast.xml");
216 FvUpdater::sharedUpdater()->CheckForUpdatesSilent();
217#endif
218 211
219 // call Menu getInstance static method to set up the menu212 // call Menu getInstance static method to set up the menu
220 _window->setMenuBar(Menu::getInstance());213 _window->setMenuBar(Menu::getInstance());
221 214
215#if defined(Q_OS_MAC) && defined(QT_NO_DEBUG)
216 Menu::getInstance()->checkForUpdates();
217#endif
218
222 _networkAccessManager = new QNetworkAccessManager(this);219 _networkAccessManager = new QNetworkAccessManager(this);
223 220
224 QRect available = desktop()->availableGeometry();221 QRect available = desktop()->availableGeometry();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t