ui: fixes
* Fixed send ping after changing plugin ports * Fixed can't close EULA window
This commit is contained in:
@@ -68,9 +68,16 @@ void IDECommunicationController::setEnabled(const bool enabled)
|
||||
m_enabled = enabled;
|
||||
}
|
||||
|
||||
void IDECommunicationController::sendInitialPing()
|
||||
void IDECommunicationController::sendUpdatePing()
|
||||
{
|
||||
sendUpdatePing();
|
||||
// first reset connection status
|
||||
MessagePingReceived msg;
|
||||
msg.ideId = "";
|
||||
msg.ideName = "";
|
||||
msg.dispatch();
|
||||
|
||||
// send ping to update connection status
|
||||
sendMessage(NetworkProtocolHelper::buildPingMessage());
|
||||
}
|
||||
|
||||
void IDECommunicationController::handleSetActiveTokenMessage(
|
||||
@@ -220,15 +227,3 @@ void IDECommunicationController::handleMessage(MessagePluginPortChange* message)
|
||||
stopListening();
|
||||
startListening();
|
||||
}
|
||||
|
||||
void IDECommunicationController::sendUpdatePing()
|
||||
{
|
||||
// first reset connection status
|
||||
MessagePingReceived msg;
|
||||
msg.ideId = "";
|
||||
msg.ideName = "";
|
||||
msg.dispatch();
|
||||
|
||||
// send ping to update connection status
|
||||
sendMessage(NetworkProtocolHelper::buildPingMessage());
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
void setEnabled(const bool enabled);
|
||||
|
||||
protected:
|
||||
void sendInitialPing();
|
||||
void sendUpdatePing();
|
||||
|
||||
private:
|
||||
void handleSetActiveTokenMessage(const NetworkProtocolHelper::SetActiveTokenMessage& message);
|
||||
@@ -51,8 +51,6 @@ private:
|
||||
virtual void handleMessage(MessagePluginPortChange* message);
|
||||
virtual void sendMessage(const std::string& message) const = 0;
|
||||
|
||||
void sendUpdatePing();
|
||||
|
||||
StorageAccess* m_storageAccess;
|
||||
|
||||
bool m_enabled;
|
||||
|
||||
Reference in New Issue
Block a user