mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-12 05:44:14 +03:00
Merge pull request #9777 from glassez/fix-altwebui
Fix Alternative Web UI to be available. Closes #9720
This commit is contained in:
commit
69bf848f32
1 changed files with 12 additions and 6 deletions
|
@ -414,13 +414,19 @@ void WebApplication::doProcessRequest()
|
|||
|
||||
void WebApplication::configure()
|
||||
{
|
||||
const auto pref = Preferences::instance();
|
||||
const auto *pref = Preferences::instance();
|
||||
|
||||
const bool isAltUIUsed = pref->isAltWebUiEnabled();
|
||||
const QString rootFolder = Utils::Fs::expandPathAbs(
|
||||
!pref->isAltWebUiEnabled() ? WWW_FOLDER : pref->getWebUiRootFolder());
|
||||
if (rootFolder != m_rootFolder) {
|
||||
m_translatedFiles.clear();
|
||||
!isAltUIUsed ? WWW_FOLDER : pref->getWebUiRootFolder());
|
||||
if ((isAltUIUsed != m_isAltUIUsed) || (rootFolder != m_rootFolder)) {
|
||||
m_isAltUIUsed = isAltUIUsed;
|
||||
m_rootFolder = rootFolder;
|
||||
m_translatedFiles.clear();
|
||||
if (!m_isAltUIUsed)
|
||||
LogMsg(tr("Using built-in Web UI."));
|
||||
else
|
||||
LogMsg(tr("Using custom Web UI. Location: \"%1\".").arg(m_rootFolder));
|
||||
}
|
||||
|
||||
const QString newLocale = pref->getLocale();
|
||||
|
|
Loading…
Reference in a new issue