diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/util/overlay_dialog.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuzu/util/overlay_dialog.cpp b/src/yuzu/util/overlay_dialog.cpp index e6ca8dc3b..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(); |
| @@ -85,6 +85,7 @@ void OverlayDialog::InitializeRegularTextDialog(const QString& title_text, const | |||
| 85 | 85 | ||
| 86 | if (ui->button_cancel->isHidden() && ui->button_ok_label->isHidden()) { | 86 | if (ui->button_cancel->isHidden() && ui->button_ok_label->isHidden()) { |
| 87 | ui->buttonsDialog->hide(); | 87 | ui->buttonsDialog->hide(); |
| 88 | return; | ||
| 88 | } | 89 | } |
| 89 | 90 | ||
| 90 | connect( | 91 | connect( |
| @@ -136,6 +137,7 @@ void OverlayDialog::InitializeRichTextDialog(const QString& title_text, const QS | |||
| 136 | 137 | ||
| 137 | if (ui->button_cancel_rich->isHidden() && ui->button_ok_rich->isHidden()) { | 138 | if (ui->button_cancel_rich->isHidden() && ui->button_ok_rich->isHidden()) { |
| 138 | ui->buttonsRichDialog->hide(); | 139 | ui->buttonsRichDialog->hide(); |
| 140 | return; | ||
| 139 | } | 141 | } |
| 140 | 142 | ||
| 141 | connect( | 143 | connect( |