mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win-linux] rename GetKeyboardLayouts() and return result
This commit is contained in:
@ -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));
|
||||
|
||||
Reference in New Issue
Block a user