Explorar o código

Added missing redraw after selection update

Mike %!s(int64=2) %!d(string=hai) anos
pai
achega
5134583111
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 1 0
      client/lobby/CSavingScreen.cpp
  2. 3 1
      client/lobby/SelectionTab.cpp

+ 1 - 0
client/lobby/CSavingScreen.cpp

@@ -62,6 +62,7 @@ void CSavingScreen::changeSelection(std::shared_ptr<CMapInfo> to)
 
 	localMi = to;
 	card->changeSelection();
+	card->redraw();
 }
 
 void CSavingScreen::saveGame()

+ 3 - 1
client/lobby/SelectionTab.cpp

@@ -415,11 +415,13 @@ void SelectionTab::select(int position)
 	rememberCurrentSelection();
 
 	if(inputName && inputName->isActive())
-	{
+	{	
 		auto filename = *CResourceHandler::get("local")->getResourceName(ResourceID(curItems[py]->fileURI, EResType::CLIENT_SAVEGAME));
 		inputName->setText(filename.stem().string());
 	}
+
 	updateListItems();
+	redraw();
 	if(callOnSelect)
 		callOnSelect(curItems[py]);
 }