UI: Fix placeholder element not being deleted

This commit is contained in:
derrod 2022-10-23 13:53:50 +02:00 committed by Rodney
parent 82c734892c
commit 1eedf4b50d

View file

@ -34,7 +34,9 @@ OBSAbout::OBSAbout(QWidget *parent) : QDialog(parent), ui(new Ui::OBSAbout)
ui->contribute->setText(QTStr("About.Contribute"));
if (!steam) {
if (steam) {
delete ui->donate;
} else {
ui->donate->setText(
"&nbsp;&nbsp;<a href='https://obsproject.com/contribute'>" +
QTStr("About.Donate") + "</a>");