mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03: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
Notes:
sideshowbarker
2024-07-19 10:25:28 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/fe67ba032dc Pull-request: https://github.com/SerenityOS/serenity/pull/996
@ -27,6 +27,7 @@ public:
|
||||
|
||||
virtual void context_menu_event(GContextMenuEvent& event) override
|
||||
{
|
||||
set_checked(true);
|
||||
m_tool->on_contextmenu(event);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user