mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 11:39:25 +00:00
updater: fix button focus
This commit is contained in:
parent
e2eb8e4ed3
commit
478248f99c
2 changed files with 15 additions and 0 deletions
|
@ -69,6 +69,7 @@ void UpdateDialog::noUpdateAvailable() {
|
|||
void UpdateDialog::updateAvailable() {
|
||||
m_waitingTimer.stop();
|
||||
ui->frame->show();
|
||||
ui->btn_download->setFocus();
|
||||
ui->btn_installUpdate->hide();
|
||||
ui->btn_restart->hide();
|
||||
ui->progressBar->hide();
|
||||
|
@ -134,6 +135,7 @@ void UpdateDialog::onDownloadFinished() {
|
|||
this->setStatus("Download finished and verified.", true);
|
||||
|
||||
ui->btn_installUpdate->show();
|
||||
ui->btn_installUpdate->setFocus();
|
||||
ui->progressBar->hide();
|
||||
|
||||
m_updateZipArchive = responseStr;
|
||||
|
@ -246,6 +248,7 @@ void UpdateDialog::onInstallUpdate() {
|
|||
this->setStatus("Installation successful. Do you want to restart Feather now?");
|
||||
}
|
||||
ui->btn_restart->show();
|
||||
ui->btn_restart->setFocus();
|
||||
}
|
||||
|
||||
void UpdateDialog::installUpdateMac() {
|
||||
|
|
|
@ -79,6 +79,9 @@
|
|||
<property name="text">
|
||||
<string>Cancel</string>
|
||||
</property>
|
||||
<property name="autoDefault">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -86,6 +89,9 @@
|
|||
<property name="text">
|
||||
<string>Download</string>
|
||||
</property>
|
||||
<property name="default">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -93,6 +99,9 @@
|
|||
<property name="text">
|
||||
<string>Install Update</string>
|
||||
</property>
|
||||
<property name="default">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -100,6 +109,9 @@
|
|||
<property name="text">
|
||||
<string>Restart Feather</string>
|
||||
</property>
|
||||
<property name="default">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
Loading…
Reference in a new issue