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 Vladimir Golovnev (glassez)
parent 0f7a27ea03
commit 8f1fc451ae
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7

View File

@ -508,7 +508,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
@ -520,6 +520,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());