diff options
author | Mustafa Quraish <mustafaq9@gmail.com> | 2021-08-27 23:24:38 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-28 08:10:44 +0100 |
commit | 5a8ac56fb995cba49d447081ddb0305c270ddc40 (patch) | |
tree | ec4c08bc4ae39f6f0e923552070df8d33640de36 /Userland | |
parent | 01b38ffc9aaa2c0096edcd9d91212a9c65036d22 (diff) | |
download | serenity-5a8ac56fb995cba49d447081ddb0305c270ddc40.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index 83185f1f64..79e8c357ce 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -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); } } |