fix: 1.console client not register own data type. 2.start by current screen heigh width. 3.set heartbeat to server.

This commit is contained in:
2025-06-26 22:09:04 +08:00
parent a3b5078d73
commit 08a2957177
12 changed files with 67 additions and 47 deletions

View File

@@ -13,6 +13,8 @@ void ConsoleHelper::RunWorker(ClientCore* clientCore)
clientCore_ = clientCore;
sockWorker_ = new SocketWorker(clientCore_, nullptr);
heatBeat_ = new HeatBeat(clientCore_);
clientCore_->moveToThread(sockWorker_);
fileTrans_ = new FileTrans(clientCore_);
@@ -24,6 +26,7 @@ void ConsoleHelper::RunWorker(ClientCore* clientCore)
connect(sockWorker_, &QThread::finished, sockWorker_, &QObject::deleteLater);
sockWorker_->start();
heatBeat_->start();
}
void ConsoleHelper::SetIpPort(const QString& ip, quint16 port)