mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 21:51:25 -07:00
Enhancement of the webui preference and of the quote escape for javascript
This commit is contained in:
parent
80b526d1af
commit
d7ac142885
3 changed files with 16 additions and 10 deletions
|
@ -1076,7 +1076,11 @@ void Preferences::setIgnoreSlowTorrentsForQueueing(bool ignore)
|
|||
|
||||
bool Preferences::isWebUiEnabled() const
|
||||
{
|
||||
#ifdef DISABLE_GUI
|
||||
return true;
|
||||
#else
|
||||
return value("Preferences/WebUI/Enabled", false).toBool();
|
||||
#endif
|
||||
}
|
||||
|
||||
void Preferences::setWebUiEnabled(bool enabled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue