mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Avoid double lookups
This commit is contained in:
@@ -68,6 +68,9 @@ public:
|
||||
|
||||
CachedSettingValue<T> &operator=(const T &newValue)
|
||||
{
|
||||
if (m_value == newValue)
|
||||
return *this;
|
||||
|
||||
m_value = newValue;
|
||||
storeValue(m_value);
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user