1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Added missing redraw after selection update

This commit is contained in:
Mike 2023-07-11 23:10:02 -07:00
parent 90397a9604
commit 5134583111
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -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]);
}