diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/util/overlay_dialog.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/yuzu/util/overlay_dialog.cpp b/src/yuzu/util/overlay_dialog.cpp index b27954512..3fa3d0afb 100644 --- a/src/yuzu/util/overlay_dialog.cpp +++ b/src/yuzu/util/overlay_dialog.cpp | |||
| @@ -42,7 +42,7 @@ OverlayDialog::OverlayDialog(QWidget* parent, Core::System& system, const QStrin | |||
| 42 | MoveAndResizeWindow(); | 42 | MoveAndResizeWindow(); |
| 43 | 43 | ||
| 44 | // TODO (Morph): Remove this when InputInterpreter no longer relies on the HID backend | 44 | // TODO (Morph): Remove this when InputInterpreter no longer relies on the HID backend |
| 45 | if (system.IsPoweredOn()) { | 45 | if (system.IsPoweredOn() && !ui->buttonsDialog->isHidden()) { |
| 46 | input_interpreter = std::make_unique<InputInterpreter>(system); | 46 | input_interpreter = std::make_unique<InputInterpreter>(system); |
| 47 | 47 | ||
| 48 | StartInputThread(); | 48 | StartInputThread(); |
| @@ -83,6 +83,11 @@ void OverlayDialog::InitializeRegularTextDialog(const QString& title_text, const | |||
| 83 | ui->button_ok_label->setEnabled(false); | 83 | ui->button_ok_label->setEnabled(false); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | if (ui->button_cancel->isHidden() && ui->button_ok_label->isHidden()) { | ||
| 87 | ui->buttonsDialog->hide(); | ||
| 88 | return; | ||
| 89 | } | ||
| 90 | |||
| 86 | connect( | 91 | connect( |
| 87 | ui->button_cancel, &QPushButton::clicked, this, | 92 | ui->button_cancel, &QPushButton::clicked, this, |
| 88 | [this](bool) { | 93 | [this](bool) { |
| @@ -130,6 +135,11 @@ void OverlayDialog::InitializeRichTextDialog(const QString& title_text, const QS | |||
| 130 | ui->button_ok_rich->setEnabled(false); | 135 | ui->button_ok_rich->setEnabled(false); |
| 131 | } | 136 | } |
| 132 | 137 | ||
| 138 | if (ui->button_cancel_rich->isHidden() && ui->button_ok_rich->isHidden()) { | ||
| 139 | ui->buttonsRichDialog->hide(); | ||
| 140 | return; | ||
| 141 | } | ||
| 142 | |||
| 133 | connect( | 143 | connect( |
| 134 | ui->button_cancel_rich, &QPushButton::clicked, this, | 144 | ui->button_cancel_rich, &QPushButton::clicked, this, |
| 135 | [this](bool) { | 145 | [this](bool) { |