SYNERGY-1085 Notificatons for unknown applications (#7066)

* SYNERGY-1085 Notificatons for unknown applications

* Update ChangeLog
This commit is contained in:
SerhiiGadzhilov
2021-08-04 17:53:25 +03:00
committed by GitHub
parent 1a38713ff8
commit 28dcd34251
3 changed files with 25 additions and 15 deletions

View File

@ -919,12 +919,17 @@ ServerProxy::secureInputNotification()
String app;
ProtocolUtil::readf(m_stream, kMsgDSecureInputNotification + 4, &app);
String secureInputNotificationBody =
"'Secure input' enabled by " + app + " on the server. " \
"To fix the keyboard, " + app + " must be closed.";
// display this notification on the client
AppUtil::instance().showNotification(
"The keyboard may stop working.",
secureInputNotificationBody);
if (app != "unknown") {
AppUtil::instance().showNotification(
"The keyboard may stop working.",
"'Secure input' enabled by " + app + " on the server. " \
"To fix the keyboard, " + app + " must be closed.");
}
else {
AppUtil::instance().showNotification(
"The keyboard may stop working.",
"'Secure input' enabled by an application on the server. " \
"To fix the keyboard, the application must be closed.");
}
}