mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
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:
parent
3be62c9294
commit
6e7f8d9d9c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
return colorButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue