MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / handleUpdateInfo

Method handleUpdateInfo

settings/UpdateDialog.cpp:190–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void UpdateDialog::handleUpdateInfo(const PluginUpdater::UpdateInfo &info)
191{
192 m_updateInfo = info;
193
194 if (!info.isUpdateAvailable) {
195 m_titleLabel->setText(tr("QodeAssist is up to date"));
196 m_versionLabel->setText(
197 tr("You are using the latest version: %1").arg(m_updater->currentVersion()));
198 return;
199 }
200
201 m_titleLabel->setText(tr("A new version of QodeAssist is available!"));
202 m_versionLabel->setText(tr("Version %1 is now available - you have %2")
203 .arg(info.version, m_updater->currentVersion()));
204
205 if (!info.changeLog.isEmpty()) {
206 m_changelogText->setText(info.changeLog);
207 } else {
208 m_changelogText->setText(
209 tr("No release notes available. Check the release page for more information."));
210 }
211}
212
213void UpdateDialog::openReleasePage()
214{

Callers

nothing calls this directly

Calls 3

setTextMethod · 0.80
currentVersionMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected