aboutsummaryrefslogtreecommitdiffstats
path: root/support/hololens/ServoApp/App.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'support/hololens/ServoApp/App.cpp')
-rw-r--r--support/hololens/ServoApp/App.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/support/hololens/ServoApp/App.cpp b/support/hololens/ServoApp/App.cpp
index e373f05210d..9f6495c49e1 100644
--- a/support/hololens/ServoApp/App.cpp
+++ b/support/hololens/ServoApp/App.cpp
@@ -63,7 +63,12 @@ void App::OnLaunched(LaunchActivatedEventArgs const &e) {
}
void App::OnSuspending([[maybe_unused]] IInspectable const &sender,
- [[maybe_unused]] SuspendingEventArgs const &e) {}
+ [[maybe_unused]] SuspendingEventArgs const &e) {
+ auto content = Window::Current().Content();
+ Frame rootFrame = content.try_as<Frame>();
+ auto page = rootFrame.Content().try_as<BrowserPage>();
+ page->Shutdown();
+}
void App::OnNavigationFailed(IInspectable const &,
NavigationFailedEventArgs const &e) {