From: Jocelyn Turcotte Date: Tue, 4 Jul 2017 14:45:48 +0000 (+0200) Subject: SocketApi: Add GET_STRINGS:BEGIN and END X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~704^2^2~64 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=389499d639d0cda1afb93a7e62463d487631f054;p=nextcloud-desktop.git SocketApi: Add GET_STRINGS:BEGIN and END The Windows shell extension relied on the response of SHARE_MENU_TITLE to advance its state machine, but in order to use the new GET_STRINGS instead, we need to know when the last string was received. Also add BEGIN for consistency. --- diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp index b43d77a4a..6fc4ea405 100644 --- a/src/gui/socketapi.cpp +++ b/src/gui/socketapi.cpp @@ -532,9 +532,11 @@ void SocketApi::command_GET_STRINGS(const QString &, SocketListener *listener) { "COPY_PRIVATE_LINK_TITLE", tr("Copy private link to clipboard") }, { "EMAIL_PRIVATE_LINK_TITLE", tr("Send private link by email...") }, } }; + listener->sendMessage(QString("GET_STRINGS:BEGIN")); for (auto key_value : strings) { listener->sendMessage(QString("STRING:%1:%2").arg(key_value.first, key_value.second)); } + listener->sendMessage(QString("GET_STRINGS:END")); } QString SocketApi::buildRegisterPathMessage(const QString &path)