mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-13 23:07:30 +00:00
Qt: Re-enable download button on update failure
This commit is contained in:
parent
2e0825a363
commit
cd216d91db
@ -568,6 +568,11 @@ void AutoUpdaterDialog::downloadUpdateClicked()
|
|||||||
QMetaObject::invokeMethod(g_main_window, "requestExit", Qt::QueuedConnection, Q_ARG(bool, true));
|
QMetaObject::invokeMethod(g_main_window, "requestExit", Qt::QueuedConnection, Q_ARG(bool, true));
|
||||||
done(0);
|
done(0);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// update failed, re-enable download button
|
||||||
|
m_ui.downloadAndInstall->setEnabled(true);
|
||||||
|
}
|
||||||
#elif defined(UPDATE_CHECKER_SUPPORTED)
|
#elif defined(UPDATE_CHECKER_SUPPORTED)
|
||||||
QtUtils::OpenURL(this, fmt::format(fmt::runtime(DOWNLOAD_PAGE_URL), getCurrentUpdateTag()));
|
QtUtils::OpenURL(this, fmt::format(fmt::runtime(DOWNLOAD_PAGE_URL), getCurrentUpdateTag()));
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user