mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibGUI: Don't paint text cursor if TextEditor is disabled
This looked a bit odd in the rare case of disabling a focused TextEditor.
This commit is contained in:
parent
bcf764cecf
commit
315e1c705f
Notes:
sideshowbarker
2024-07-17 21:16:31 +09:00
Author: https://github.com/metmo
Commit: 315e1c705f
Pull-request: https://github.com/SerenityOS/serenity/pull/11806
1 changed files with 1 additions and 1 deletions
|
@ -719,7 +719,7 @@ void TextEditor::paint_event(PaintEvent& event)
|
|||
painter.draw_scaled_bitmap(icon_rect, *m_icon, m_icon->rect());
|
||||
}
|
||||
|
||||
if (is_focused() && m_cursor_state && !is_displayonly())
|
||||
if (is_enabled() && is_focused() && m_cursor_state && !is_displayonly())
|
||||
painter.fill_rect(cursor_content_rect(), palette().text_cursor());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue