mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-10 13:27:22 +00:00
Qt: Prevent multiple update download button clicks
This commit is contained in:
parent
97700b85de
commit
a879c11c34
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user