Esempio n. 1
0
bool FvUpdateWindow::UpdateWindowWithCurrentProposedUpdate() {
    FvAvailableUpdate *proposedUpdate = FvUpdater::sharedUpdater()->GetProposedUpdate();

    if (! proposedUpdate)
        return false;

    QString downloadString = m_ui->wouldYouLikeToDownloadLabel->text()
                             .arg (QString::fromUtf8 (FV_APP_NAME), proposedUpdate->GetEnclosureVersion(), QString::fromUtf8 (FV_APP_VERSION));
    m_ui->wouldYouLikeToDownloadLabel->setText (downloadString);

    m_ui->releaseNotesWebView->stop();
    m_ui->releaseNotesWebView->load (proposedUpdate->GetReleaseNotesLink());

    return true;
}
Esempio n. 2
0
void FvUpdater::SkipUpdate()
{
	qDebug() << "Skip update";

	FvAvailableUpdate* proposedUpdate = GetProposedUpdate();
	if (! proposedUpdate) {
		qWarning() << "Proposed update is NULL (shouldn't be at this point)";
		return;
	}

	// Start ignoring this particular version
	FVIgnoredVersions::IgnoreVersion(proposedUpdate->GetEnclosureVersion());

	hideUpdaterWindow();
	hideUpdateConfirmationDialog();	// if any; shouldn't be shown at this point, but who knows
}
Esempio n. 3
0
void FvUpdater::SkipUpdate()
{
	qDebug() << "Skip update";

	FvAvailableUpdate* proposedUpdate = GetProposedUpdate();
	if (! proposedUpdate) {
		qWarning() << "Proposed update is NULL (shouldn't be at this point)";
		return;
	}

	// Start ignoring this particular version
	FVIgnoredVersions::IgnoreVersion(proposedUpdate->GetEnclosureVersion());

#ifdef FV_GUI
	hideUpdaterWindow();
#endif
}