WebUI: Query to reset the alternative UI setting

This commit is contained in:
Hanabishi 2025-03-08 18:58:32 +00:00
commit d5fdaefb7e

View file

@ -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;