Ref T165, using CGuiApplication::distributionInfoAvailable is redundant, the cache changed signal is enough

* distribution info avaialble signal no longer needs flag
* some functions can be removed
This commit is contained in:
Klaus Basan
2017-09-28 00:10:01 +02:00
parent a61f55a4fc
commit a196015b73
4 changed files with 19 additions and 58 deletions

View File

@@ -145,16 +145,9 @@ void CSwiftLauncher::ps_displayLatestNews(QNetworkReply *reply)
}
}
void CSwiftLauncher::ps_distributionInfoAvailable(bool success)
void CSwiftLauncher::ps_distributionInfoAvailable()
{
if (success)
{
this->setHeaderInfo(ui->comp_DistributionInfo->getNewAvailableVersionForSelection());
}
else
{
this->setHeaderInfo("");
}
this->setHeaderInfo(ui->comp_DistributionInfo->getNewAvailableVersionForSelection());
this->loadLatestNews();
this->loadAbout();
}