Laserlicht 2 年之前
父節點
當前提交
ac5f552219
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      client/widgets/TextControls.cpp

+ 1 - 2
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<CPicture>(name);
 	background = backgroundImage;
 	pos = background->pos;