From 5a8ac56fb995cba49d447081ddb0305c270ddc40 Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Fri, 27 Aug 2021 23:24:38 -0400 Subject: 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. --- Userland/Applications/PixelPaint/ImageEditor.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland') 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); } } -- cgit v1.2.3