From 602ad995815b5b2251fb80b8d5b19578e19f5243 Mon Sep 17 00:00:00 2001 From: derrod Date: Sun, 16 Oct 2022 02:00:00 +0200 Subject: [PATCH] UI: Hide donation CTA when running via Steam --- UI/window-basic-about.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/UI/window-basic-about.cpp b/UI/window-basic-about.cpp index f8eb14bd5..99492b001 100644 --- a/UI/window-basic-about.cpp +++ b/UI/window-basic-about.cpp @@ -33,11 +33,14 @@ OBSAbout::OBSAbout(QWidget *parent) : QDialog(parent), ui(new Ui::OBSAbout) ui->version->setText(ver + bitness); ui->contribute->setText(QTStr("About.Contribute")); - ui->donate->setText( - "  " + - QTStr("About.Donate") + ""); - ui->donate->setTextInteractionFlags(Qt::TextBrowserInteraction); - ui->donate->setOpenExternalLinks(true); + + if (!steam) { + ui->donate->setText( + "  " + + QTStr("About.Donate") + ""); + ui->donate->setTextInteractionFlags(Qt::TextBrowserInteraction); + ui->donate->setOpenExternalLinks(true); + } ui->getInvolved->setText( "  " +