From cd216d91db92d126aec0004c4223fcf255507d35 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 27 Nov 2024 18:59:41 +1000 Subject: [PATCH] Qt: Re-enable download button on update failure --- src/duckstation-qt/autoupdaterdialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/duckstation-qt/autoupdaterdialog.cpp b/src/duckstation-qt/autoupdaterdialog.cpp index 8dcc37951..26f6abbb4 100644 --- a/src/duckstation-qt/autoupdaterdialog.cpp +++ b/src/duckstation-qt/autoupdaterdialog.cpp @@ -568,6 +568,11 @@ void AutoUpdaterDialog::downloadUpdateClicked() QMetaObject::invokeMethod(g_main_window, "requestExit", Qt::QueuedConnection, Q_ARG(bool, true)); done(0); } + else + { + // update failed, re-enable download button + m_ui.downloadAndInstall->setEnabled(true); + } #elif defined(UPDATE_CHECKER_SUPPORTED) QtUtils::OpenURL(this, fmt::format(fmt::runtime(DOWNLOAD_PAGE_URL), getCurrentUpdateTag())); #endif