ui: fix prime widget w/ no internet (#21767)

old-commit-hash: 54f1afe403
This commit is contained in:
sshane
2021-07-28 18:45:49 -07:00
committed by GitHub
parent 28ddda3011
commit c10ed33d98
+4 -2
View File
@@ -268,8 +268,10 @@ SetupWidget::SetupWidget(QWidget* parent) : QFrame(parent) {
void SetupWidget::parseError(const QString &response) {
show();
showQr = false;
mainLayout->setCurrentIndex(0);
if (mainLayout->currentIndex() == 1) {
showQr = false;
mainLayout->setCurrentIndex(0);
}
}
void SetupWidget::showQrCode() {