History

remove renderingInWorldInterface signals

Brad Hefta-Gaub committed 11 years ago

Commit 0ba1e8c1 parent 4a34b143 files · +4 −13Browse files

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

Unified · Split

interface/src/scripting/GlobalServicesScriptingInterface.cpp+4−2
@@ -22,8 +22,10 @@ GlobalServicesScriptingInterface::GlobalServicesScriptingInterface() { · 21 unmodified lines
2222 connect(&accountManager, &AccountManager::logoutComplete, this, &GlobalServicesScriptingInterface::loggedOut);
2323
2424 _downloading = false;
25− connect(Application::getInstance(), &Application::renderingInWorldInterface,
26− this, &GlobalServicesScriptingInterface::checkDownloadInfo);
25+ QTimer* checkDownloadTimer = new QTimer(this);
26+ connect(checkDownloadTimer, &QTimer::timeout, this, &GlobalServicesScriptingInterface::checkDownloadInfo);
27+ const int CHECK_DOWNLOAD_INTERVAL = MSECS_PER_SECOND / 2;
28+ checkDownloadTimer->start(CHECK_DOWNLOAD_INTERVAL);
2729
2830 auto discoverabilityManager = DependencyManager::get<DiscoverabilityManager>();
2931 connect(discoverabilityManager.data(), &DiscoverabilityManager::discoverabilityModeChanged,