Skip to content

Commit

Permalink
Qt: Prevent multiple update download button clicks
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 27, 2024
1 parent 97700b8 commit a879c11
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/duckstation-qt/autoupdaterdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@ void AutoUpdaterDialog::getChangesComplete(s32 status_code, std::vector<u8> resp
void AutoUpdaterDialog::downloadUpdateClicked()
{
#ifdef AUTO_UPDATER_SUPPORTED
// Prevent multiple clicks of the button.
if (!m_ui.downloadAndInstall->isEnabled())
return;
m_ui.downloadAndInstall->setEnabled(false);

m_display_messages = true;

std::optional<bool> download_result;
Expand Down

0 comments on commit a879c11

Please sign in to comment.