1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 16:24:59 +00:00

LibGUI: Remove on_activity_change from ComboBox

Unnecessary since the inclusion of window accessories.
This commit is contained in:
thankyouverycool 2020-07-15 18:26:53 -04:00 committed by Andreas Kling
parent 67cdbe1925
commit 1f8e9727ec

View file

@ -102,16 +102,8 @@ ComboBox::ComboBox()
m_list_window = add<Window>(window());
m_list_window->set_frameless(true);
m_list_window->set_accessory(true);
m_list_window->on_active_input_change = [this](bool is_active_input) {
if (!is_active_input) {
m_open_button->set_enabled(true);
close();
}
};
m_list_window->on_activity_change = [this](const bool is_active) {
if (!is_active) {
m_open_button->set_enabled(false);
close();
}