Showing the changes to interface/src/Application.cpp (1 of 8 files). Show all
Unified · Split
| @@ -143,6 +143,7 @@ · 142 unmodified lines | |||
| 143 | #include "ui/StandAloneJSConsole.h" | 143 | #include "ui/StandAloneJSConsole.h" |
| 144 | #include "ui/Stats.h" | 144 | #include "ui/Stats.h" |
| 145 | #include "ui/AddressBarDialog.h" | 145 | #include "ui/AddressBarDialog.h" |
| 146 | #include "ui/UpdateDialog.h" | ||
| 146 | 147 | ||
| 147 | // ON WIndows PC, NVidia Optimus laptop, we want to enable NVIDIA GPU | 148 | // ON WIndows PC, NVidia Optimus laptop, we want to enable NVIDIA GPU |
| 148 | #if defined(Q_OS_WIN) | 149 | #if defined(Q_OS_WIN) |
| @@ -290,6 +291,7 @@ bool setupEssentials(int& argc, char** argv) { · 141 unmodified lines | |||
| 290 | auto discoverabilityManager = DependencyManager::set<DiscoverabilityManager>(); | 291 | auto discoverabilityManager = DependencyManager::set<DiscoverabilityManager>(); |
| 291 | auto sceneScriptingInterface = DependencyManager::set<SceneScriptingInterface>(); | 292 | auto sceneScriptingInterface = DependencyManager::set<SceneScriptingInterface>(); |
| 292 | auto offscreenUi = DependencyManager::set<OffscreenUi>(); | 293 | auto offscreenUi = DependencyManager::set<OffscreenUi>(); |
| 294 | auto autoUpdate = DependencyManager::set<AutoUpdate>(); | ||
| 293 | 295 | ||
| 294 | return true; | 296 | return true; |
| 295 | } | 297 | } |
| @@ -612,7 +614,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 316 unmodified lines | |||
| 612 | connect(ddeTracker.data(), &FaceTracker::muteToggled, this, &Application::faceTrackerMuteToggled); | 614 | connect(ddeTracker.data(), &FaceTracker::muteToggled, this, &Application::faceTrackerMuteToggled); |
| 613 | #endif | 615 | #endif |
| 614 | 616 | ||
| 615 | AutoUpdate* applicationUpdater = new AutoUpdate; | 617 | auto applicationUpdater = DependencyManager::get<AutoUpdate>(); |
| 618 | connect(applicationUpdater.data(), SIGNAL(newVersionIsAvailable()), dialogsManager.data(), SLOT(showUpdateDialog())); | ||
| 616 | applicationUpdater->checkForUpdate(); | 619 | applicationUpdater->checkForUpdate(); |
| 617 | } | 620 | } |
| 618 | 621 | ||