1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

code review

This commit is contained in:
Laserlicht 2024-08-12 17:53:24 +02:00 committed by GitHub
parent 9a9cc10ee7
commit 52b1219db6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -315,7 +315,7 @@ void CHeroList::CHeroItem::keyPressed(EShortcut key)
auto & heroes = LOCPLINT->localState->getWanderingHeroes();
if(key == EShortcut::LIST_HERO_DELETE)
if(key == EShortcut::LIST_HERO_DISMISS)
{
LOCPLINT->showYesNoDialog(CGI->generaltexth->allTexts[22], [=](){ LOCPLINT->cb->dismissHero(hero); }, nullptr);
return;

View File

@ -297,7 +297,7 @@ enum class EShortcut
LIST_HERO_DOWN,
LIST_HERO_TOP,
LIST_HERO_BOTTOM,
LIST_HERO_DELETE,
LIST_HERO_DISMISS,
LIST_TOWN_UP,
LIST_TOWN_DOWN,
LIST_TOWN_TOP,

View File

@ -279,7 +279,7 @@ EShortcut ShortcutHandler::findShortcut(const std::string & identifier ) const
{"listHeroDown", EShortcut::LIST_HERO_DOWN },
{"listHeroTop", EShortcut::LIST_HERO_TOP },
{"listHeroBottom", EShortcut::LIST_HERO_BOTTOM },
{"listHeroDelete", EShortcut::LIST_HERO_DELETE },
{"listHeroDismiss", EShortcut::LIST_HERO_DISMISS },
{"listTownUp", EShortcut::LIST_TOWN_UP },
{"listTownDown", EShortcut::LIST_TOWN_DOWN },
{"listTownTop", EShortcut::LIST_TOWN_TOP },

View File

@ -246,7 +246,7 @@
"listHeroDown": "Ctrl+PageDown",
"listHeroTop": "Ctrl+Home",
"listHeroBottom": "Ctrl+End",
"listHeroDelete": "Delete",
"listHeroDismiss": "Delete",
"listTownUp": "Ctrl+PageUp",
"listTownDown": "Ctrl+PageDown",
"listTownTop": "Ctrl+Home",