mirror of
https://github.com/Murmele/Gittyup.git
synced 2024-09-11 10:45:39 +03:00
disable update dialog
This commit is contained in:
parent
20686f8968
commit
ec561e637c
@ -75,23 +75,24 @@ Updater::Updater(QObject *parent)
|
|||||||
|
|
||||||
connect(this, &Updater::updateAvailable,
|
connect(this, &Updater::updateAvailable,
|
||||||
[this](const QString &version, const QString &log, const QString &link) {
|
[this](const QString &version, const QString &log, const QString &link) {
|
||||||
// Show the update dialog.
|
// For now the update dialog is disabled.
|
||||||
QVersionNumber appVersion =
|
// // Show the update dialog.
|
||||||
QVersionNumber::fromString(QCoreApplication::applicationVersion());
|
// QVersionNumber appVersion =
|
||||||
QVersionNumber newVersion = QVersionNumber::fromString(version);
|
// QVersionNumber::fromString(QCoreApplication::applicationVersion());
|
||||||
if (newVersion.majorVersion() > appVersion.majorVersion() ||
|
// QVersionNumber newVersion = QVersionNumber::fromString(version);
|
||||||
!Settings::instance()->value("update/download").toBool()) {
|
// if (newVersion.majorVersion() > appVersion.majorVersion() ||
|
||||||
UpdateDialog *dialog = new UpdateDialog(version, log, link);
|
// !Settings::instance()->value("update/download").toBool()) {
|
||||||
connect(dialog, &UpdateDialog::rejected, this, &Updater::updateCanceled);
|
// UpdateDialog *dialog = new UpdateDialog(version, log, link);
|
||||||
dialog->show();
|
// connect(dialog, &UpdateDialog::rejected, this, &Updater::updateCanceled);
|
||||||
return;
|
// dialog->show();
|
||||||
}
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
// Skip the update dialog and just start downloading.
|
// // Skip the update dialog and just start downloading.
|
||||||
if (Updater::DownloadRef download = this->download(link)) {
|
// if (Updater::DownloadRef download = this->download(link)) {
|
||||||
DownloadDialog *dialog = new DownloadDialog(download);
|
// DownloadDialog *dialog = new DownloadDialog(download);
|
||||||
dialog->show();
|
// dialog->show();
|
||||||
}
|
// }
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(this, &Updater::updateError,
|
connect(this, &Updater::updateError,
|
||||||
|
Loading…
Reference in New Issue
Block a user