chore:更新调用更新器的逻辑

This commit is contained in:
2025-08-05 13:04:46 +08:00
parent f06d17c57a
commit 655d562bac

View File

@@ -16,6 +16,7 @@
#include <QtConcurrent> #include <QtConcurrent>
#include <qlogging.h> #include <qlogging.h>
#include <qprocess.h> #include <qprocess.h>
#include <system_error>
#include <unistd.h> #include <unistd.h>
#include <backend/ThemeChecker.h> #include <backend/ThemeChecker.h>
@@ -525,7 +526,11 @@ void MainWindow::notify(QObject *receiver, QEvent *event)
void MainWindow::on_pushButton_14_clicked() void MainWindow::on_pushButton_14_clicked()
{ {
QString appPath; 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()) if(appPath.isEmpty())
{ {
qWarning() << "Spark Update Tool not found!"; qWarning() << "Spark Update Tool not found!";