mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 20:37:34 +00:00
PaintBrush: Select tool button on context menu event
This means that (for example) if you change the line width of the line tool, you now switch to the line tool, instead of sticking with the currently "checked" tool.
This commit is contained in:
parent
0ac95ec510
commit
fe67ba032d
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ public:
|
|||
|
||||
virtual void context_menu_event(GContextMenuEvent& event) override
|
||||
{
|
||||
set_checked(true);
|
||||
m_tool->on_contextmenu(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue