mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Cache more preference values
These values from Preference class are frequently used. Also group related variables together.
This commit is contained in:
parent
de8050701d
commit
e04aae686f
2 changed files with 15 additions and 9 deletions
|
@ -39,6 +39,7 @@
|
|||
#include "base/http/irequesthandler.h"
|
||||
#include "base/http/responsebuilder.h"
|
||||
#include "base/http/types.h"
|
||||
#include "base/utils/net.h"
|
||||
#include "base/utils/version.h"
|
||||
|
||||
constexpr Utils::Version<int, 3, 2> API_VERSION {2, 0, 1};
|
||||
|
@ -133,7 +134,6 @@ private:
|
|||
QSet<QString> m_publicAPIs;
|
||||
bool m_isAltUIUsed = false;
|
||||
QString m_rootFolder;
|
||||
QStringList m_domainList;
|
||||
|
||||
struct TranslatedFile
|
||||
{
|
||||
|
@ -143,7 +143,12 @@ private:
|
|||
QMap<QString, TranslatedFile> m_translatedFiles;
|
||||
QString m_currentLocale;
|
||||
|
||||
bool m_isLocalAuthEnabled;
|
||||
bool m_isAuthSubnetWhitelistEnabled;
|
||||
QList<Utils::Net::Subnet> m_authSubnetWhitelist;
|
||||
|
||||
// security related
|
||||
QStringList m_domainList;
|
||||
bool m_isClickjackingProtectionEnabled;
|
||||
bool m_isCSRFProtectionEnabled;
|
||||
bool m_isHttpsEnabled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue