aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2020-04-16 16:57:47 -0400
committerJosh Matthews <josh@joshmatthews.net>2020-04-16 16:57:47 -0400
commita779db57f451593ae3b6b6b3457049911dcaf4af (patch)
tree2b840f4352e01275fe9c5f64ce8c5fbe928b23e9
parente9afb0ca7767764b318c6dc2aa3bd83d4f7351bb (diff)
downloadservo-a779db57f451593ae3b6b6b3457049911dcaf4af.tar.gz
servo-a779db57f451593ae3b6b6b3457049911dcaf4af.zip
Don't shutdown the app when it's suspended.
-rw-r--r--support/hololens/ServoApp/App.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/support/hololens/ServoApp/App.cpp b/support/hololens/ServoApp/App.cpp
index a505da34d5a..22b6f4586f4 100644
--- a/support/hololens/ServoApp/App.cpp
+++ b/support/hololens/ServoApp/App.cpp
@@ -103,10 +103,14 @@ void App::OnActivated(IActivatedEventArgs const &args) {
}
void App::OnSuspending(IInspectable const &, SuspendingEventArgs const &) {
- auto content = Window::Current().Content();
+ // FIXME: Apps can be suspended for various reasons, not just closing them.
+ // * Figure out how to save state like the current URL so it can be
+ // restored if necessary.
+ // * Determine if the user has actually closed the app and shutdown.
+ /*auto content = Window::Current().Content();
Frame rootFrame = content.try_as<Frame>();
auto page = rootFrame.Content().try_as<BrowserPage>();
- page->Shutdown();
+ page->Shutdown();*/
}
void App::OnNavigationFailed(IInspectable const &,