diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index 3df1a87170..8f9dded147 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -442,6 +442,14 @@ void ImageEditor::set_active_tool(Tool* tool) } } +void ImageEditor::update_tool_cursor() +{ + if (m_active_tool) { + m_active_cursor = m_active_tool->cursor(); + set_override_cursor(m_active_cursor); + } +} + void ImageEditor::set_guide_visibility(bool show_guides) { if (m_show_guides == show_guides) diff --git a/Userland/Applications/PixelPaint/ImageEditor.h b/Userland/Applications/PixelPaint/ImageEditor.h index 85ffcf174d..f658203771 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.h +++ b/Userland/Applications/PixelPaint/ImageEditor.h @@ -36,6 +36,7 @@ public: Tool* active_tool() { return m_active_tool; } void set_active_tool(Tool*); + void update_tool_cursor(); void did_complete_action(); bool undo();