From c7ed7d94279082600eb75218ebe8b4cc6a3ab0d0 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Fri, 19 Jun 2020 22:17:56 +1000 Subject: Fix compilation when not building with boxcat Fixes compilation when trying to build without boxcat enabled --- src/yuzu/configuration/configure_service.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/yuzu/configuration/configure_service.cpp') diff --git a/src/yuzu/configuration/configure_service.cpp b/src/yuzu/configuration/configure_service.cpp index 06566e981..92a1737b3 100644 --- a/src/yuzu/configuration/configure_service.cpp +++ b/src/yuzu/configuration/configure_service.cpp @@ -68,6 +68,7 @@ void ConfigureService::SetConfiguration() { } std::pair ConfigureService::BCATDownloadEvents() { +#ifdef YUZU_ENABLE_BOXCAT std::optional global; std::map map; const auto res = Service::BCAT::Boxcat::GetStatus(global, map); @@ -106,6 +107,10 @@ std::pair ConfigureService::BCATDownloadEvents() { .arg(FormatEventStatusString(value)); } return {QStringLiteral("Current Boxcat Events"), std::move(out)}; +#else + return {QStringLiteral("Current Boxcat Events"), + tr("There are currently no events on boxcat.")}; +#endif } void ConfigureService::OnBCATImplChanged() { -- cgit v1.2.3 From a7fe6dc232ec20a5da2f41807e428e666748d9d8 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Sat, 20 Jun 2020 11:57:51 +1000 Subject: Add translation of "Current Boxcat Events" --- src/yuzu/configuration/configure_service.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/yuzu/configuration/configure_service.cpp') diff --git a/src/yuzu/configuration/configure_service.cpp b/src/yuzu/configuration/configure_service.cpp index 92a1737b3..0de7a4f0b 100644 --- a/src/yuzu/configuration/configure_service.cpp +++ b/src/yuzu/configuration/configure_service.cpp @@ -106,10 +106,9 @@ std::pair 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 {QStringLiteral("Current Boxcat Events"), - tr("There are currently no events on boxcat.")}; + return {tr("Current Boxcat Events"), tr("There are currently no events on boxcat.")}; #endif } -- cgit v1.2.3