summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2026-03-26 01:06:10 +0000
committerVaxry <vaxry@vaxry.net>2026-03-26 01:06:23 +0000
commiteb141a6cd068f1319cb7caa1d3ad40f4957f65b1 (patch)
tree7d76e2cc8f09178bc3e8fdc704ba9fda7113da9e /src
parent855b1cba40ab972dc7c03ccd76ff5aacbeed099d (diff)
overridableVar: fix reassignment
we don't want to remove already set props with our reassignmemnt
Diffstat (limited to 'src')
-rw-r--r--src/desktop/types/OverridableVar.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/types/OverridableVar.hpp b/src/desktop/types/OverridableVar.hpp
index cdf27b89..065da167 100644
--- a/src/desktop/types/OverridableVar.hpp
+++ b/src/desktop/types/OverridableVar.hpp
@@ -62,7 +62,7 @@ namespace Desktop::Types {
for (size_t i = 0; i < PRIORITY_END; ++i) {
if constexpr (Extended && !std::is_same_v<T, bool>)
m_values[i] = other.m_values[i].has_value() ? clampOptional(*other.m_values[i], m_minValue, m_maxValue) : other.m_values[i];
- else
+ else if (other.m_values[i].has_value())
m_values[i] = other.m_values[i];
}