diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-11-15 15:00:19 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-12-18 16:33:28 +0100 |
commit | d6d1a8e02c99b369fdbd9df2d3bdb68832f3d614 (patch) | |
tree | 0c2e3d558620b5bdb2d69c5643340c32dfe61ef3 /src/core/hle/service/am | |
parent | applets/web: Implement the offline browser applet backend (diff) | |
download | yuzu-d6d1a8e02c99b369fdbd9df2d3bdb68832f3d614.tar yuzu-d6d1a8e02c99b369fdbd9df2d3bdb68832f3d614.tar.gz yuzu-d6d1a8e02c99b369fdbd9df2d3bdb68832f3d614.tar.bz2 yuzu-d6d1a8e02c99b369fdbd9df2d3bdb68832f3d614.tar.lz yuzu-d6d1a8e02c99b369fdbd9df2d3bdb68832f3d614.tar.xz yuzu-d6d1a8e02c99b369fdbd9df2d3bdb68832f3d614.tar.zst yuzu-d6d1a8e02c99b369fdbd9df2d3bdb68832f3d614.zip |
Diffstat (limited to 'src/core/hle/service/am')
-rw-r--r-- | src/core/hle/service/am/applets/web_browser.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/service/am/applets/web_browser.cpp b/src/core/hle/service/am/applets/web_browser.cpp index 06fcf3e3f..c0c98ad30 100644 --- a/src/core/hle/service/am/applets/web_browser.cpp +++ b/src/core/hle/service/am/applets/web_browser.cpp @@ -356,7 +356,10 @@ void WebBrowser::ExecuteLogin() { void WebBrowser::ExecuteOffline() { LOG_INFO(Service_AM, "Opening offline document at {}", offline_document); - WebBrowserExit(WebExitReason::WindowClosed); + frontend.OpenLocalWebPage(offline_document, + [this](WebExitReason exit_reason, std::string last_url) { + WebBrowserExit(exit_reason, last_url); + }); } void WebBrowser::ExecuteShare() { |