mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
LibGUI: Update color widgets when has_alpha is toggled in ColorPicker
Fixing a bug where the alpha spinbox wasn't immediately disabled when color_has_alpha_channel was set to false.
This commit is contained in:
committed by
Andreas Kling
parent
01915a3027
commit
8b293119ab
@@ -161,6 +161,15 @@ ColorPicker::~ColorPicker()
|
||||
{
|
||||
}
|
||||
|
||||
void ColorPicker::set_color_has_alpha_channel(bool has_alpha)
|
||||
{
|
||||
if (m_color_has_alpha_channel == has_alpha)
|
||||
return;
|
||||
|
||||
m_color_has_alpha_channel = has_alpha;
|
||||
update_color_widgets();
|
||||
}
|
||||
|
||||
void ColorPicker::build_ui()
|
||||
{
|
||||
auto& root_container = set_main_widget<Widget>();
|
||||
|
||||
Reference in New Issue
Block a user