diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-12-19 05:54:56 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-12-19 05:54:56 +0100 |
commit | 190ded7f485695870aadd391591da93c6cf01af0 (patch) | |
tree | cb0456da4bb15e21324c78b607943dafa3a0ad6d /src | |
parent | Merge pull request #9470 from german77/silenceIkillYou (diff) | |
download | yuzu-190ded7f485695870aadd391591da93c6cf01af0.tar yuzu-190ded7f485695870aadd391591da93c6cf01af0.tar.gz yuzu-190ded7f485695870aadd391591da93c6cf01af0.tar.bz2 yuzu-190ded7f485695870aadd391591da93c6cf01af0.tar.lz yuzu-190ded7f485695870aadd391591da93c6cf01af0.tar.xz yuzu-190ded7f485695870aadd391591da93c6cf01af0.tar.zst yuzu-190ded7f485695870aadd391591da93c6cf01af0.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/util/overlay_dialog.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/yuzu/util/overlay_dialog.cpp b/src/yuzu/util/overlay_dialog.cpp index b27954512..e6ca8dc3b 100644 --- a/src/yuzu/util/overlay_dialog.cpp +++ b/src/yuzu/util/overlay_dialog.cpp @@ -83,6 +83,10 @@ void OverlayDialog::InitializeRegularTextDialog(const QString& title_text, const ui->button_ok_label->setEnabled(false); } + if (ui->button_cancel->isHidden() && ui->button_ok_label->isHidden()) { + ui->buttonsDialog->hide(); + } + connect( ui->button_cancel, &QPushButton::clicked, this, [this](bool) { @@ -130,6 +134,10 @@ void OverlayDialog::InitializeRichTextDialog(const QString& title_text, const QS ui->button_ok_rich->setEnabled(false); } + if (ui->button_cancel_rich->isHidden() && ui->button_ok_rich->isHidden()) { + ui->buttonsRichDialog->hide(); + } + connect( ui->button_cancel_rich, &QPushButton::clicked, this, [this](bool) { |