From 655d562bac462c919ce78332f5c20f0e86c7a417 Mon Sep 17 00:00:00 2001 From: momen Date: Tue, 5 Aug 2025 13:04:46 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E6=9B=B4=E6=96=B0=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=99=A8=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mainwindow-dtk.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mainwindow-dtk.cpp b/src/mainwindow-dtk.cpp index f98348c..0579f0b 100755 --- a/src/mainwindow-dtk.cpp +++ b/src/mainwindow-dtk.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -525,7 +526,11 @@ void MainWindow::notify(QObject *receiver, QEvent *event) void MainWindow::on_pushButton_14_clicked() { QString appPath; - appPath = QCoreApplication::applicationDirPath() + "/spark-update-tool/spark-update-tool"; + appPath = QCoreApplication::applicationDirPath() ; + QDir dir(appPath); + dir.cdUp(); + appPath = dir.absolutePath(); + qDebug() << "Spark Update Tool Path: " << appPath; if(appPath.isEmpty()) { qWarning() << "Spark Update Tool not found!";