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()
|
void AutoUpdaterDialog::downloadUpdateClicked()
|
||||||
{
|
{
|
||||||
#ifdef AUTO_UPDATER_SUPPORTED
|
#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;
|
m_display_messages = true;
|
||||||
|
|
||||||
std::optional<bool> download_result;
|
std::optional<bool> download_result;
|
||||||
|
|
Loading…
Reference in New Issue