From 59588c90d592eb3b723123bde308a5729ebd323d Mon Sep 17 00:00:00 2001 From: momen Date: Fri, 11 Jul 2025 00:31:18 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E7=82=B9=E5=87=BB=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=B0=83=E7=94=A8=E6=9B=B4=E6=96=B0=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mainwindow-dtk.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mainwindow-dtk.cpp b/src/mainwindow-dtk.cpp index c457f76..9993c43 100755 --- a/src/mainwindow-dtk.cpp +++ b/src/mainwindow-dtk.cpp @@ -552,11 +552,11 @@ void MainWindow::on_pushButton_14_clicked() if (!upgradeStatus.exists()) { QString appPath; - + // 开发环境路径(构建目录) #ifdef QT_DEBUG - appPath = QCoreApplication::applicationDirPath() + - "/../spark-update-tool/spark-update-tool"; + appPath = QCoreApplication::applicationDirPath() + + "/spark-update-tool/spark-update-tool"; #else // 安装后路径(系统PATH) appPath = QStandardPaths::findExecutable("spark-update-tool"); @@ -569,8 +569,8 @@ void MainWindow::on_pushButton_14_clicked() QProcess *process = new QProcess(this); process->start(appPath, {"--silent"}); - - connect(process, QOverload::of(&QProcess::finished), + + connect(process, QOverload::of(&QProcess::finished), [=](int exitCode) { if (exitCode == 0) { qDebug() << "Update check successful";