|
|
@ -44,8 +44,6 @@ InstallerPrompt::InstallerPrompt(QWidget *parent)
|
|
|
|
|
|
|
|
|
|
|
|
cpd = new ConnectionProgressDialog();
|
|
|
|
cpd = new ConnectionProgressDialog();
|
|
|
|
|
|
|
|
|
|
|
|
updateConnectionInfo();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
initLanguageComboBox();
|
|
|
|
initLanguageComboBox();
|
|
|
|
|
|
|
|
|
|
|
|
connect(ui->tryLubuntu, &QPushButton::clicked, this, &InstallerPrompt::onTryClicked);
|
|
|
|
connect(ui->tryLubuntu, &QPushButton::clicked, this, &InstallerPrompt::onTryClicked);
|
|
|
@ -65,6 +63,8 @@ InstallerPrompt::InstallerPrompt(QWidget *parent)
|
|
|
|
QTimer *repeater = new QTimer();
|
|
|
|
QTimer *repeater = new QTimer();
|
|
|
|
connect(repeater, SIGNAL(timeout()), this, SLOT(updateConnectionInfo()));
|
|
|
|
connect(repeater, SIGNAL(timeout()), this, SLOT(updateConnectionInfo()));
|
|
|
|
repeater->start(15000);
|
|
|
|
repeater->start(15000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateConnectionInfo();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
InstallerPrompt::~InstallerPrompt()
|
|
|
|
InstallerPrompt::~InstallerPrompt()
|
|
|
@ -317,11 +317,15 @@ void InstallerPrompt::updateConnectionInfo()
|
|
|
|
ui->networkComboBox->setCurrentIndex(connectedDevice);
|
|
|
|
ui->networkComboBox->setCurrentIndex(connectedDevice);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!firstUpdateConnectionInfoCall) {
|
|
|
|
if (NetworkManager::status() == NetworkManager::Connecting) {
|
|
|
|
if (NetworkManager::status() == NetworkManager::Connecting) {
|
|
|
|
cpd->exec();
|
|
|
|
cpd->exec();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
cpd->done(0);
|
|
|
|
cpd->done(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
firstUpdateConnectionInfoCall = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void InstallerPrompt::handleWiFiConnectionChange(NetworkManager::Device::State newstate, NetworkManager::Device::State oldstate, NetworkManager::Device::StateChangeReason reason)
|
|
|
|
void InstallerPrompt::handleWiFiConnectionChange(NetworkManager::Device::State newstate, NetworkManager::Device::State oldstate, NetworkManager::Device::StateChangeReason reason)
|
|
|
|