mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibGUI: Remove has_visible_list members from TextEditor
This was a kludge to paint ComboBox editors before the advent of accessory windows, isn't being used anymore, and was inadvertently letting two ComboBoxes paint as if both had focus.
This commit is contained in:
committed by
Andreas Kling
parent
906cccbf7f
commit
d2d69f3efb
@@ -251,7 +251,6 @@ void ComboBox::open()
|
||||
Gfx::IntRect list_window_rect { my_screen_rect.bottom_left(), size };
|
||||
list_window_rect.intersect(Desktop::the().rect().shrunken(0, taskbar_height + menubar_height + offset));
|
||||
|
||||
m_editor->set_has_visible_list(true);
|
||||
m_editor->set_focus(true);
|
||||
if (m_selected_index.has_value()) {
|
||||
// Don't set m_updating_model to true here because we only want to
|
||||
@@ -272,8 +271,6 @@ void ComboBox::open()
|
||||
void ComboBox::close()
|
||||
{
|
||||
m_list_window->hide();
|
||||
m_editor->set_has_visible_list(false);
|
||||
m_editor->set_focus(true);
|
||||
}
|
||||
|
||||
String ComboBox::text() const
|
||||
|
||||
Reference in New Issue
Block a user