diff options
author | Kyle Kienapfel <Docteh@users.noreply.github.com> | 2022-06-17 11:25:14 +0200 |
---|---|---|
committer | Kyle Kienapfel <Docteh@users.noreply.github.com> | 2022-06-22 02:48:17 +0200 |
commit | 31c6ba7ecd4adb2038fc42c4abaa6aa9ec4fea57 (patch) | |
tree | 039d5e175e47382ca172a139e579d8e719b01690 | |
parent | Merge pull request #8450 from lioncash/undef (diff) | |
download | yuzu-31c6ba7ecd4adb2038fc42c4abaa6aa9ec4fea57.tar yuzu-31c6ba7ecd4adb2038fc42c4abaa6aa9ec4fea57.tar.gz yuzu-31c6ba7ecd4adb2038fc42c4abaa6aa9ec4fea57.tar.bz2 yuzu-31c6ba7ecd4adb2038fc42c4abaa6aa9ec4fea57.tar.lz yuzu-31c6ba7ecd4adb2038fc42c4abaa6aa9ec4fea57.tar.xz yuzu-31c6ba7ecd4adb2038fc42c4abaa6aa9ec4fea57.tar.zst yuzu-31c6ba7ecd4adb2038fc42c4abaa6aa9ec4fea57.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu/applets/qt_web_browser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu/applets/qt_web_browser.cpp b/src/yuzu/applets/qt_web_browser.cpp index 283c04cd5..790edbb2a 100644 --- a/src/yuzu/applets/qt_web_browser.cpp +++ b/src/yuzu/applets/qt_web_browser.cpp @@ -52,8 +52,8 @@ QtNXWebEngineView::QtNXWebEngineView(QWidget* parent, Core::System& system, : QWebEngineView(parent), input_subsystem{input_subsystem_}, url_interceptor(std::make_unique<UrlRequestInterceptor>()), input_interpreter(std::make_unique<InputInterpreter>(system)), - default_profile{QWebEngineProfile::defaultProfile()}, - global_settings{QWebEngineSettings::globalSettings()} { + default_profile{QWebEngineProfile::defaultProfile()}, global_settings{ + default_profile->settings()} { default_profile->setPersistentStoragePath(QString::fromStdString(Common::FS::PathToUTF8String( Common::FS::GetYuzuPath(Common::FS::YuzuPath::YuzuDir) / "qtwebengine"))); @@ -78,7 +78,7 @@ QtNXWebEngineView::QtNXWebEngineView(QWidget* parent, Core::System& system, default_profile->scripts()->insert(gamepad); default_profile->scripts()->insert(window_nx); - default_profile->setRequestInterceptor(url_interceptor.get()); + default_profile->setUrlRequestInterceptor(url_interceptor.get()); global_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true); global_settings->setAttribute(QWebEngineSettings::FullScreenSupportEnabled, true); |