mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fixed not working shortcuts on some buttons in main menu
This commit is contained in:
@@ -241,6 +241,11 @@ std::shared_ptr<CButton> CMenuEntry::createButton(CMenuScreen * parent, const Js
|
||||
|
||||
EShortcut shortcut = GH.shortcuts().findShortcut(button["shortcut"].String());
|
||||
|
||||
if (shortcut == EShortcut::NONE && !button["shortcut"].String().empty())
|
||||
{
|
||||
logGlobal->warn("Unknown shortcut '%s' found when loading main menu config!", button["shortcut"].String());
|
||||
}
|
||||
|
||||
auto result = std::make_shared<CButton>(Point(posx, posy), AnimationPath::fromJson(button["name"]), help, command, shortcut);
|
||||
|
||||
if (button["center"].Bool())
|
||||
|
||||
Reference in New Issue
Block a user