Browse Source

Minor changes

nordsoft 2 years ago
parent
commit
1e527a6942
3 changed files with 2 additions and 2 deletions
  1. 1 1
      client/battle/BattleWindow.cpp
  2. 1 1
      client/lobby/OptionsTab.cpp
  3. 0 0
      config/widgets/battleWindow.json

+ 1 - 1
client/battle/BattleWindow.cpp

@@ -51,7 +51,7 @@ BattleWindow::BattleWindow(BattleInterface & owner):
 
 	REGISTER_BUILDER("battleConsole", &BattleWindow::buildBattleConsole);
 	
-	const JsonNode config(ResourceID("config/widgets/BattleWindow2.json"));
+	const JsonNode config(ResourceID("config/widgets/BattleWindow.json"));
 	
 	addShortcut(EShortcut::GLOBAL_OPTIONS, std::bind(&BattleWindow::bOptionsf, this));
 	addShortcut(EShortcut::BATTLE_SURRENDER, std::bind(&BattleWindow::bSurrenderf, this));

+ 1 - 1
client/lobby/OptionsTab.cpp

@@ -176,7 +176,7 @@ void OptionsTab::recreate()
 
 	if(auto turnSlider = widget<CSlider>("sliderTurnDuration"))
 	{
-		if(!variables["timerPresets"].isNull())
+		if(turnSlider->isActive() && !variables["timerPresets"].isNull())
 		{
 			for(int idx = 0; idx < variables["timerPresets"].Vector().size(); ++idx)
 			{

+ 0 - 0
config/widgets/battleWindow2.json → config/widgets/battleWindow.json