Fix "Save as .torrent file" button is visible before metadata retrieved

PR #23375.
This commit is contained in:
Vladimir Golovnev
2025-10-14 13:02:53 +03:00
committed by GitHub
parent fb71c814ca
commit d41012a285

View File

@@ -511,7 +511,7 @@ void AddNewTorrentDialog::setCurrentContext(const std::shared_ptr<Context> conte
{
m_ui->lblMetaLoading->setVisible(false);
m_ui->progMetaLoading->setVisible(false);
m_ui->buttonSave->setVisible(false);
m_ui->buttonSave->setVisible(true);
setupTreeview();
}
else
@@ -523,6 +523,7 @@ void AddNewTorrentDialog::setCurrentContext(const std::shared_ptr<Context> conte
m_ui->labelDateData->setText(tr("Not Available", "This date is unavailable"));
updateDiskSpaceLabel();
setMetadataProgressIndicator(true, tr("Retrieving metadata..."));
m_ui->buttonSave->setVisible(false);
}
TMMChanged(m_ui->comboTMM->currentIndex());