had:处理Console断开后自动退出。

This commit is contained in:
2025-11-15 12:47:56 +08:00
parent 81604e003a
commit 599e5524d4
2 changed files with 6 additions and 0 deletions

View File

@@ -42,5 +42,10 @@ int main(int argc, char* argv[])
helper->RunWorker(core.get()); helper->RunWorker(core.get());
helper->Connect(); helper->Connect();
QObject::connect(core.get(), &ClientCore::sigDisconnect, [&app](){
qWarning() << "Abnormal state, quit...";
app.exit();
});
return app.exec(); return app.exec();
} }

View File

@@ -8,6 +8,7 @@
| 序号 | 类型 | 内容 | 说明 | 基于版本 | 完成版本 | | 序号 | 类型 | 内容 | 说明 | 基于版本 | 完成版本 |
| :--: | :--: | ------------------------------------------------------------ | :--: | :------: | :------: | | :--: | :--: | ------------------------------------------------------------ | :--: | :------: | :------: |
| 39 | 优化 | Console端断联后应当自动退出。 | | 0.2.3 | 0.2.4 |
| 38 | 功能 | PE中使用没有拖拽功能,文件管理器要有下载/上传按钮。 | | 0.2.3 | | | 38 | 功能 | PE中使用没有拖拽功能,文件管理器要有下载/上传按钮。 | | 0.2.3 | |
| 37 | 问题 | 未连接对方客户端时,执行对照传输会崩溃。 | | 0.2.3 | | | 37 | 问题 | 未连接对方客户端时,执行对照传输会崩溃。 | | 0.2.3 | |
| 36 | 功能 | 备份文件功能。 | | 0.2.3 | | | 36 | 功能 | 备份文件功能。 | | 0.2.3 | |