mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:25:07 +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:
parent
906cccbf7f
commit
d2d69f3efb
3 changed files with 3 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue