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