Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/project/internal/opensaveprojectscenario.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ static std::string cloudStatusCodeErrorMessage(const Ret& ret, bool withHelp = f
}

if (withHelp) {
message += "\n\n" + muse::trc("project/cloud", "Please try again later, or get help for this problem on MuseScore.org.");
message += "\n\n" + muse::trc("project/cloud", "Please try again later, or get help for this problem on MuseScore.com.");
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}

return message;
Expand Down Expand Up @@ -606,14 +606,14 @@ Ret OpenSaveProjectScenario::showCloudSaveError(const Ret& ret, const CloudProje
.arg(u"https://musescore.com").toStdString();
break;
default:
msg = muse::trc("project/cloud", "Please try again later, or get help for this problem on MuseScore.org.");
msg = muse::trc("project/cloud", "Please try again later, or get help for this problem on MuseScore.com.");
break;
}

IInteractive::Result result = interactive()->warningSync(title, msg, buttons, defaultButtonCode);
switch (result.button()) {
case helpBtnCode:
platformInteractive()->openUrl(configuration()->supportForumUrl());
platformInteractive()->openUrl(configuration()->dotComBugReportUrl());
break;
case saveLocallyBtnCode:
return Ret(RET_CODE_CHANGE_SAVE_LOCATION_TYPE);
Expand Down
6 changes: 6 additions & 0 deletions src/project/internal/projectconfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,12 @@ QUrl ProjectConfiguration::supportForumUrl() const
return QUrl("https://musescore.org/forum");
}

QUrl ProjectConfiguration::dotComBugReportUrl() const
{
// The general .com bug report page
return QUrl("https://musescore.com/groups/bug-reports");
}

bool ProjectConfiguration::openDetailedProjectUploadedDialog() const
{
return settings()->value(OPEN_DETAILED_PROJECT_UPLOADED_DIALOG).toBool();
Expand Down
2 changes: 2 additions & 0 deletions src/project/internal/projectconfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ class ProjectConfiguration : public IProjectConfiguration, public muse::Contexta

QUrl supportForumUrl() const override;

QUrl dotComBugReportUrl() const override;

bool openDetailedProjectUploadedDialog() const override;
void setOpenDetailedProjectUploadedDialog(bool show) override;

Expand Down
2 changes: 2 additions & 0 deletions src/project/iprojectconfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ class IProjectConfiguration : MODULE_GLOBAL_INTERFACE

virtual QUrl supportForumUrl() const = 0;

virtual QUrl dotComBugReportUrl() const = 0;
Comment thread
coderabbitai[bot] marked this conversation as resolved.

virtual bool openDetailedProjectUploadedDialog() const = 0;
virtual void setOpenDetailedProjectUploadedDialog(bool show) = 0;

Expand Down
2 changes: 2 additions & 0 deletions src/project/tests/mocks/projectconfigurationmock.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ class ProjectConfigurationMock : public project::IProjectConfiguration

MOCK_METHOD(QUrl, supportForumUrl, (), (const, override));

MOCK_METHOD(QUrl, dotComBugReportUrl, (), (const, override));

MOCK_METHOD(bool, openDetailedProjectUploadedDialog, (), (const, override));
MOCK_METHOD(void, setOpenDetailedProjectUploadedDialog, (bool), (override));

Expand Down
5 changes: 5 additions & 0 deletions src/stubs/project/projectconfigurationstub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,11 @@ QUrl ProjectConfigurationStub::supportForumUrl() const
return QUrl();
}

QUrl ProjectConfigurationStub::dotComBugReportUrl() const
{
return QUrl();
}

bool ProjectConfigurationStub::openDetailedProjectUploadedDialog() const
{
return false;
Expand Down
2 changes: 2 additions & 0 deletions src/stubs/project/projectconfigurationstub.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ class ProjectConfigurationStub : public IProjectConfiguration

QUrl supportForumUrl() const override;

QUrl dotComBugReportUrl() const override;

bool openDetailedProjectUploadedDialog() const override;
void setOpenDetailedProjectUploadedDialog(bool show) override;

Expand Down
Loading