From d5fdaefb7e93ffbc490e9a3875b2cc8f3313ab86 Mon Sep 17 00:00:00 2001 From: Hanabishi <13597663+HanabishiRecca@users.noreply.github.com> Date: Sat, 8 Mar 2025 18:58:32 +0000 Subject: [PATCH] WebUI: Query to reset the alternative UI setting --- src/webui/webapplication.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/webui/webapplication.cpp b/src/webui/webapplication.cpp index 0f556f3f3..e9c7678cd 100644 --- a/src/webui/webapplication.cpp +++ b/src/webui/webapplication.cpp @@ -211,6 +211,12 @@ void WebApplication::sendWebUIFile() throw BadRequestHTTPError(); } + if (m_isAltUIUsed && request().path == u"/" && request().query.contains(QStringLiteral(u"resetui"))) + { + Preferences::instance()->setAltWebUIEnabled(false); + configure(); + } + const QString path = (request().path != u"/") ? request().path : u"/index.html"_s;