logic: ping related updates

* ping is now sent on window focus
* remove ping result from status view
This commit is contained in:
malte_langkabel
2017-04-10 12:09:58 +02:00
parent d4d3decfb9
commit 635bf70076
2 changed files with 8 additions and 10 deletions
@@ -177,21 +177,19 @@ void IDECommunicationController::handlePing(const NetworkProtocolHelper::PingMes
if (msg.ideName.empty())
{
msg.ideName = "unknown";
msg.ideName = "unknown IDE";
}
std::string statusMessage = msg.ideName + " instance detected via plugin port";
MessageStatus(statusMessage, false, false).dispatch();
LOG_INFO(msg.ideName + " instance detected via plugin port");
msg.dispatch();
}
else
{
LOG_ERROR_STREAM(<< "Can't handle ping, message is invalid");
LOG_ERROR("Can't handle ping, message is invalid");
}
}
void IDECommunicationController::handleMessage(MessageActivateTokens* message)
void IDECommunicationController::handleMessage(MessageWindowFocus* message)
{
sendUpdatePing();
}