1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

PixelPaint: Empty Tool menu

Fix #4038 by not deferring the creation of the tools. The original
change that introduced this, 7973f76790,
mentions this was needed to avoid having the menu work on the wrong
window, but I don't see that issue with this change so that may not be
needed anymore.
This commit is contained in:
Tim Waterhouse 2021-04-04 15:50:34 -07:00 committed by Andreas Kling
parent ade97d4094
commit 3feaebfc2d

View file

@ -105,9 +105,7 @@ ToolboxWidget::ToolboxWidget()
m_action_group.set_exclusive(true);
m_action_group.set_unchecking_allowed(false);
deferred_invoke([this](auto&) {
setup_tools();
});
setup_tools();
}
ToolboxWidget::~ToolboxWidget()