[libcalamaresui] Make web-paste decision more readable

This commit is contained in:
Adriaan de Groot 2021-12-07 12:48:17 +01:00
parent 2f9edb3e08
commit 3234de5753

View File

@ -152,9 +152,9 @@ ViewManager::insertViewStep( int before, ViewStep* step )
void
ViewManager::onInstallationFailed( const QString& message, const QString& details )
{
bool shouldOfferWebPaste = std::get< 0 >( Calamares::Branding::instance()->uploadServer() )
!= Calamares::Branding::UploadServerType::None
and std::get< 2 >( Calamares::Branding::instance()->uploadServer() ) != 0;
const auto webPaste = Calamares::Branding::instance()->uploadServer();
bool shouldOfferWebPaste
= std::get< 0 >( webPaste ) != Calamares::Branding::UploadServerType::None and std::get< 2 >( webPaste ) != 0;
cError() << "Installation failed:" << message;
cDebug() << Logger::SubEntry << "- message:" << message;