From 3feaebfc2d8e1bda31d4ba22ef8bb7e3102e916a Mon Sep 17 00:00:00 2001 From: Tim Waterhouse Date: Sun, 4 Apr 2021 15:50:34 -0700 Subject: [PATCH] PixelPaint: Empty Tool menu Fix #4038 by not deferring the creation of the tools. The original change that introduced this, 7973f767905abd64942bf538a53e385ab207bd6e, 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. --- Userland/Applications/PixelPaint/ToolboxWidget.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Userland/Applications/PixelPaint/ToolboxWidget.cpp b/Userland/Applications/PixelPaint/ToolboxWidget.cpp index de853a55cb..833159c5eb 100644 --- a/Userland/Applications/PixelPaint/ToolboxWidget.cpp +++ b/Userland/Applications/PixelPaint/ToolboxWidget.cpp @@ -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()