From c5f6fd25c6cf097e228752272b7b0674f570c618 Mon Sep 17 00:00:00 2001 From: samamou Date: Fri, 27 Dec 2024 17:39:12 -0500 Subject: [PATCH] =?UTF-8?q?get=20editor=20path=20from=20settings=20?= =?UTF-8?q?=F0=9F=92=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/score-lib-process/Process/Script/ScriptEditor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/score-lib-process/Process/Script/ScriptEditor.cpp b/src/plugins/score-lib-process/Process/Script/ScriptEditor.cpp index b7f926e128..0d0920e873 100644 --- a/src/plugins/score-lib-process/Process/Script/ScriptEditor.cpp +++ b/src/plugins/score-lib-process/Process/Script/ScriptEditor.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -160,8 +161,7 @@ void MultiScriptDialog::clearError() void ScriptDialog::openInExternalEditor() { - QString editorPath - = "/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code"; + QString editorPath = QSettings{}.value("Skin/DefaultEditor").toString(); if(editorPath.isEmpty()) {