DolphinQt/HacksWidget: Make backend name in GPU Texture Decoding/Bounding Box tooltip translatable

This commit is contained in:
DivineWinds 2022-10-01 12:32:49 +03:00
parent c196c47e81
commit 37892a8611
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ void HacksWidget::OnBackendChanged(const QString& backend_name)
m_gpu_texture_decoding->setEnabled(gpu_texture_decoding); m_gpu_texture_decoding->setEnabled(gpu_texture_decoding);
m_disable_bounding_box->setEnabled(bbox); m_disable_bounding_box->setEnabled(bbox);
const QString tooltip = tr("%1 doesn't support this feature on your system.").arg(backend_name); const QString tooltip = tr("%1 doesn't support this feature on your system.")
.arg(tr(backend_name.toStdString().c_str()));
m_gpu_texture_decoding->setToolTip(!gpu_texture_decoding ? tooltip : QString{}); m_gpu_texture_decoding->setToolTip(!gpu_texture_decoding ? tooltip : QString{});
m_disable_bounding_box->setToolTip(!bbox ? tooltip : QString{}); m_disable_bounding_box->setToolTip(!bbox ? tooltip : QString{});