Browse Source

Web UI: Improve language change behavior

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
381eaf4b53
  1. 1
      src/webui/httpconnection.cpp

1
src/webui/httpconnection.cpp

@ -445,6 +445,7 @@ void HttpConnection::respondCommand(QString command) @@ -445,6 +445,7 @@ void HttpConnection::respondCommand(QString command)
QString json_str = parser.post("json");
EventManager* manager = httpserver->eventManager();
manager->setGlobalPreferences(json::fromJson(json_str));
m_needsTranslation = !Preferences().getLocale().startsWith("en");
}
if(command == "setFilePrio") {
QString hash = parser.post("hash");

Loading…
Cancel
Save