diff options
author | bunnei <bunneidev@gmail.com> | 2020-06-19 21:59:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 21:59:59 -0400 |
commit | 9c5ed4408d86e13cfdf9687a4a36c9fa68c7a7ac (patch) | |
tree | abf3b92e01947cb80c9cf50ba15ee1a434c097ea /src/yuzu/configuration/configure_service.cpp | |
parent | 7daea551c0c2bb38c5c432543d2f114eb83220f4 (diff) | |
parent | a7fe6dc232ec20a5da2f41807e428e666748d9d8 (diff) |
Merge pull request #4113 from ogniK5377/boxcat-disable
Fix compilation when not building with boxcat
Diffstat (limited to 'src/yuzu/configuration/configure_service.cpp')
-rw-r--r-- | src/yuzu/configuration/configure_service.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_service.cpp b/src/yuzu/configuration/configure_service.cpp index 06566e981..0de7a4f0b 100644 --- a/src/yuzu/configuration/configure_service.cpp +++ b/src/yuzu/configuration/configure_service.cpp @@ -68,6 +68,7 @@ void ConfigureService::SetConfiguration() { } std::pair<QString, QString> ConfigureService::BCATDownloadEvents() { +#ifdef YUZU_ENABLE_BOXCAT std::optional<std::string> global; std::map<std::string, Service::BCAT::EventStatus> map; const auto res = Service::BCAT::Boxcat::GetStatus(global, map); @@ -105,7 +106,10 @@ std::pair<QString, QString> ConfigureService::BCATDownloadEvents() { .arg(QString::fromStdString(key)) .arg(FormatEventStatusString(value)); } - return {QStringLiteral("Current Boxcat Events"), std::move(out)}; + return {tr("Current Boxcat Events"), std::move(out)}; +#else + return {tr("Current Boxcat Events"), tr("There are currently no events on boxcat.")}; +#endif } void ConfigureService::OnBCATImplChanged() { |