Skip to content

Commit

Permalink
Temporarily disable Save to Cloud option for Beta release
Browse files Browse the repository at this point in the history
We need to prevent users trying to upload scores, since the version on MuseScore.com will still be using 3.5.2.
It doesn't make sense to update the MuseScore.com version until we are satisfied that 3.6 is stable.
  • Loading branch information
cbjeukendrup authored and vpereverzev committed Dec 10, 2020
1 parent 8c30d15 commit 3d6b5f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mscore/cloud/uploadscoredialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ namespace Ms {

void MuseScore::showUploadScoreDialog()
{
if (MuseScore::unstable()) {
QMessageBox::warning(this, tr("Save online"), tr("Saving scores online is disabled in this unstable prerelease version of MuseScore."));
return;
}
if (!currentScore())
return;
if (!currentScore()->sanityCheck(QString())) {
Expand Down
4 changes: 4 additions & 0 deletions mscore/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3345,6 +3345,10 @@ static void parseSourceUrl(const QString& sourceUrl, int& uid, int& nid)

bool MuseScore::saveOnline(const QStringList& inFilePaths)
{
if (MuseScore::unstable()) {
qCritical() << qUtf8Printable(tr("Error: Saving scores online is disabled in this unstable prerelease version of MuseScore."));
return false;
}
if (!_loginManager->syncGetUser()) {
return false;
}
Expand Down

0 comments on commit 3d6b5f1

Please sign in to comment.