1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-12 10:40:39 +09: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
Notes: sideshowbarker 2024-07-19 04:47:03 +09:00

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();
}