diff options
Diffstat (limited to 'support/hololens/ServoApp/BrowserPage.cpp')
-rw-r--r-- | support/hololens/ServoApp/BrowserPage.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/support/hololens/ServoApp/BrowserPage.cpp b/support/hololens/ServoApp/BrowserPage.cpp index 95265852b92..2cf98b7452b 100644 --- a/support/hololens/ServoApp/BrowserPage.cpp +++ b/support/hololens/ServoApp/BrowserPage.cpp @@ -18,6 +18,23 @@ namespace winrt::ServoApp::implementation { BrowserPage::BrowserPage() { InitializeComponent(); BindServoEvents(); + if (!xrPkgChecker.IsInstalled()) { + XRPkgWarning().Visibility(Visibility::Visible); + xrPkgChecker.OnInstalled( + [=] { XRPkgWarning().Visibility(Visibility::Collapsed); }, + std::chrono::seconds{5}); + } +} + +void BrowserPage::OnXRPkgWarningDismissClick(IInspectable const &, + RoutedEventArgs const &) { + xrPkgChecker.StopTracking(); + XRPkgWarning().Visibility(Visibility::Collapsed); +} + +void BrowserPage::OnXRPkgWarningInstallClick(IInspectable const &, + RoutedEventArgs const &) { + xrPkgChecker.OpenStore(); } void BrowserPage::BindServoEvents() { |