From ac5f552219ef85166493dc63bde14baf7cb2d29d Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Tue, 26 Sep 2023 15:56:39 +0200 Subject: [PATCH] fix --- client/widgets/TextControls.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/widgets/TextControls.cpp b/client/widgets/TextControls.cpp index aed145d6a..d534f4002 100644 --- a/client/widgets/TextControls.cpp +++ b/client/widgets/TextControls.cpp @@ -458,6 +458,7 @@ CGStatusBar::CGStatusBar(int x, int y) : CLabel(x, y, FONT_SMALL, ETextAlignment::CENTER) , enteringText(false) { + // without background addUsedEvents(LCLICK); } @@ -469,8 +470,6 @@ CGStatusBar::CGStatusBar(int x, int y, const ImagePath & name, int maxw) OBJECT_CONSTRUCTION_CAPTURING(255 - DISPOSE); - if(name.empty()) // without background - return; auto backgroundImage = std::make_shared(name); background = backgroundImage; pos = background->pos;