Skip to content

Commit

Permalink
Merge pull request #3829 from lasconic/fix-274622-2
Browse files Browse the repository at this point in the history
fix #274622: Add ability to check if an extension is installed in Mus…
  • Loading branch information
lasconic committed Jul 26, 2018
2 parents 54c42d5 + 04d1ead commit 50cf9dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mscore/musescore.cpp
Expand Up @@ -663,6 +663,16 @@ bool MuseScore::uninstallExtension(QString extensionId)
return true;
}

//---------------------------------------------------------
// isInstalled
/// used from javascript in start center webview
//---------------------------------------------------------

bool MuseScore::isInstalledExtension(QString extensionId)
{
return Extension::isInstalled(extensionId);
}

//---------------------------------------------------------
// MuseScore
//---------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions mscore/musescore.h
Expand Up @@ -710,6 +710,7 @@ class MuseScore : public QMainWindow, public MuseScoreCore {
static QMap<QString, QStringList>* bravuraRanges();
bool importExtension(QString path, QWidget* parent = nullptr);
bool uninstallExtension(QString extensionId);
Q_INVOKABLE bool isInstalledExtension(QString extensionId);
};

extern MuseScore* mscore;
Expand Down

0 comments on commit 50cf9dc

Please sign in to comment.