Fix: ColorButtons in settings don't respect search (#2073)

Prior to this commit, adding a ColorButton to a SettingsLayout via
`SettingsLayout::addColorButton` lead to the button not respecting
search queries. This is because they are not added to the layout in a
Group. This commit fixes the behavior, causing color buttons to behave
like every other settings widget.
This commit is contained in:
Leon Richardt 2020-10-16 09:06:54 +02:00 committed by GitHub
parent 3be62c9294
commit 6e7f8d9d9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,6 +189,9 @@ ColorButton *SettingsLayout::addColorButton(
});
});
this->groups_.back().widgets.push_back({label, {text}});
this->groups_.back().widgets.push_back({colorButton, {text}});
return colorButton;
}