mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 14:23:35 -07:00
WebUI: Query to reset the alternative UI setting
This commit is contained in:
parent
53f919aea8
commit
d5fdaefb7e
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue