From 053f4e95d4cfee38efd813c0a2d7984eb62d2edb Mon Sep 17 00:00:00 2001 From: MaranBr Date: Tue, 14 Oct 2025 02:38:04 +0200 Subject: [common] Better approach to enabling and disabling the Web Applet (#2729) This implements a better approach to enabling and disabling the Web Applet, whether compiled or not. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2729 Reviewed-by: CamilleLaVey Co-authored-by: MaranBr Co-committed-by: MaranBr --- src/yuzu/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/yuzu/main.cpp') diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 44ed29f141..2c991b9208 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -934,7 +934,7 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url, #ifdef YUZU_USE_QT_WEB_ENGINE // Raw input breaks with the web applet, Disable web applets if enabled - if (UISettings::values.disable_web_applet || Settings::values.enable_raw_input) { + if (Settings::values.disable_web_applet || Settings::values.enable_raw_input) { emit WebBrowserClosed(Service::AM::Frontend::WebExitReason::WindowClosed, "http://localhost/"); return; @@ -1007,7 +1007,7 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url, "applet?\n(This can be re-enabled in the Debug settings.)"), QMessageBox::Yes | QMessageBox::No); if (result == QMessageBox::Yes) { - UISettings::values.disable_web_applet = true; + Settings::values.disable_web_applet = true; web_applet->SetFinished(true); } }); -- cgit v1.2.3