[win-linux] rename GetKeyboardLayouts() and return result

This commit is contained in:
SimplestStudio
2025-05-14 13:22:18 +03:00
parent b41fc1c562
commit 52695c9268

View File

@ -1331,8 +1331,7 @@ void CAscApplicationManagerWrapper::initializeApp()
EditorJSVariables::setVariable("lang", CLangater::getCurrentLangCode());
std::vector<std::pair<std::string, std::string>> layouts;
_app.GetKeyboardLayouts(layouts);
std::vector<std::pair<std::string, std::string>> layouts = _app.GetKeyboardLayoutList();
QJsonObject kbLangs;
for (const auto &lut : layouts) {
kbLangs.insert(QString::fromStdString(lut.first), QString::fromStdString(lut.second));