Open script folder on MacOS

This commit is contained in:
2024-06-09 15:42:31 +02:00
parent c2810faf8f
commit fb9d026ff5
+4
View File
@@ -8,6 +8,7 @@
#include <QSettings> #include <QSettings>
#include <QCloseEvent> #include <QCloseEvent>
#include <QMessageBox> #include <QMessageBox>
#include <QDesktopServices>
#include "scriptengine.h" #include "scriptengine.h"
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
@@ -184,6 +185,9 @@ void BatchProcessing::openScriptDir()
#ifdef Q_OS_WINDOWS #ifdef Q_OS_WINDOWS
QProcess::startDetached("explorer.exe", {QDir::toNativeSeparators(_scriptBasePath)}); QProcess::startDetached("explorer.exe", {QDir::toNativeSeparators(_scriptBasePath)});
#endif #endif
#ifdef Q_OS_MACOS
QDesktopServices::openUrl(QUrl::fromLocalFile(_scriptBasePath));
#endif
} }
void BatchProcessing::runScript() void BatchProcessing::runScript()