Skip to content

Commit

Permalink
get editor path from settings 💃
Browse files Browse the repository at this point in the history
  • Loading branch information
samamou committed Dec 27, 2024
1 parent 34af3bf commit c5f6fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/score-lib-process/Process/Script/ScriptEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <QPlainTextEdit>
#include <QProcess>
#include <QPushButton>
#include <QSettings>
#include <QStandardPaths>
#include <QTabWidget>
#include <QVBoxLayout>
Expand Down Expand Up @@ -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())
{
Expand Down

0 comments on commit c5f6fd2

Please sign in to comment.