void UpdateDialog::updateAvailable() {
m_waitingTimer.stop();
ui->frame->show();
+ ui->btn_download->setFocus();
ui->btn_installUpdate->hide();
ui->btn_restart->hide();
ui->progressBar->hide();
this->setStatus("Download finished and verified.", true);
ui->btn_installUpdate->show();
+ ui->btn_installUpdate->setFocus();
ui->progressBar->hide();
m_updateZipArchive = responseStr;
this->setStatus("Installation successful. Do you want to restart Feather now?");
}
ui->btn_restart->show();
+ ui->btn_restart->setFocus();
}
void UpdateDialog::installUpdateMac() {
<property name="text">
<string>Cancel</string>
</property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
</widget>
</item>
<item>
<property name="text">
<string>Download</string>
</property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item>
<property name="text">
<string>Install Update</string>
</property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item>
<property name="text">
<string>Restart Feather</string>
</property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
</widget>
</item>
</layout>