mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-07 11:18:03 +02:00
overridableVar: fix reassignment
we don't want to remove already set props with our reassignmemnt
This commit is contained in:
parent
609b0da983
commit
91d87ec875
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue