فهرست منبع

LibGUI: Remove on_activity_change from ComboBox

Unnecessary since the inclusion of window accessories.
thankyouverycool 5 سال پیش
والد
کامیت
1f8e9727ec
1فایلهای تغییر یافته به همراه0 افزوده شده و 8 حذف شده
  1. 0 8
      Libraries/LibGUI/ComboBox.cpp

+ 0 - 8
Libraries/LibGUI/ComboBox.cpp

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