ver:v0.2.4发布。

This commit is contained in:
2025-11-25 23:48:21 +08:00
parent 7e9b88402c
commit accf2b8123
5 changed files with 11 additions and 6 deletions

View File

@@ -38,6 +38,11 @@ int main(int argc, char* argv[])
auto core = std::make_shared<ClientCore>();
auto helper = std::make_shared<ConsoleHelper>();
QObject::connect(core.get(), &ClientCore::conFailed, [&app](){
qWarning() << "Abnormal state, quit...";
app.exit();
});
helper->SetIpPort(argv[1], QString("%1").arg(argv[2]).toInt());
helper->RunWorker(core.get());
helper->Connect();