summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-12-19 06:00:03 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-12-19 06:00:03 +0100
commit690a4c94382f76d39ce2bba4b3ed4c83e9c03050 (patch)
tree3d04fe8a06551497c3832bbb0828b8b99735cb5e
parentoverlay_dialog: Hide button dialog box when both buttons are hidden (diff)
downloadyuzu-690a4c94382f76d39ce2bba4b3ed4c83e9c03050.tar
yuzu-690a4c94382f76d39ce2bba4b3ed4c83e9c03050.tar.gz
yuzu-690a4c94382f76d39ce2bba4b3ed4c83e9c03050.tar.bz2
yuzu-690a4c94382f76d39ce2bba4b3ed4c83e9c03050.tar.lz
yuzu-690a4c94382f76d39ce2bba4b3ed4c83e9c03050.tar.xz
yuzu-690a4c94382f76d39ce2bba4b3ed4c83e9c03050.tar.zst
yuzu-690a4c94382f76d39ce2bba4b3ed4c83e9c03050.zip
-rw-r--r--src/yuzu/util/overlay_dialog.cpp4
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
MoveAndResizeWindow();
// TODO (Morph): Remove this when InputInterpreter no longer relies on the HID backend
- if (system.IsPoweredOn()) {
+ if (system.IsPoweredOn() && !ui->buttonsDialog->isHidden()) {
input_interpreter = std::make_unique<InputInterpreter>(system);
StartInputThread();
@@ -85,6 +85,7 @@ void OverlayDialog::InitializeRegularTextDialog(const QString& title_text, const
if (ui->button_cancel->isHidden() && ui->button_ok_label->isHidden()) {
ui->buttonsDialog->hide();
+ return;
}
connect(
@@ -136,6 +137,7 @@ void OverlayDialog::InitializeRichTextDialog(const QString& title_text, const QS
if (ui->button_cancel_rich->isHidden() && ui->button_ok_rich->isHidden()) {
ui->buttonsRichDialog->hide();
+ return;
}
connect(