mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:37:34 +00:00
PixelPaint: Always change cursor when active tool is set
Previously, if you used one of the keyboard shortcuts to select a different tool, it didn't change the cursor to the corresponding one till you clicked somewhere / did something else to trigger an update. This was pretty jarring since there's no indication as to whether the tool change was successful or not. This patch just calls `set_override_cursor()` when a valid active tool is set to immediately update it.
This commit is contained in:
parent
01b38ffc9a
commit
5a8ac56fb9
1 changed files with 1 additions and 0 deletions
|
@ -318,6 +318,7 @@ void ImageEditor::set_active_tool(Tool* tool)
|
|||
m_active_tool->setup(*this);
|
||||
m_active_tool->on_tool_activation();
|
||||
m_active_cursor = m_active_tool->cursor();
|
||||
set_override_cursor(m_active_cursor);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue