mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 19:16:02 +00:00
LibGUI: Set override cursor to none when widget is disabled
This commit is contained in:
parent
cf866cc75a
commit
0e63141a19
Notes:
sideshowbarker
2024-07-18 21:29:58 +09:00
Author: https://github.com/thankyouverycool
Commit: 0e63141a19
Pull-request: https://github.com/SerenityOS/serenity/pull/5741
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/emanuele6
1 changed files with 3 additions and 0 deletions
|
@ -770,6 +770,9 @@ void Widget::set_enabled(bool enabled)
|
|||
window()->did_disable_focused_widget({});
|
||||
}
|
||||
|
||||
if (!m_enabled)
|
||||
set_override_cursor(Gfx::StandardCursor::None);
|
||||
|
||||
Event e(Event::EnabledChange);
|
||||
event(e);
|
||||
update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue