зеркало из https://github.com/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.
This commit is contained in:
Родитель
7b58a82840
Коммит
389499d639
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче