Skip to content

Commit 59e75c2

Browse files
committed
Rename manual var to automatic
1 parent c6ce01b commit 59e75c2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/MainWindow.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,18 +2426,18 @@ void MainWindow::reloadSettings()
24262426
ui->tabSqlAreas->setTabsClosable(Settings::getValue("editor", "close_button_on_tabs").toBool());
24272427
}
24282428

2429-
void MainWindow::checkNewVersion(const bool silent)
2429+
void MainWindow::checkNewVersion(const bool automatic)
24302430
{
24312431
// If the user tried to manually check for updates, clear the version value for which the user chose to ignore the notification
2432-
if (!silent)
2432+
if (!automatic)
24332433
{
24342434
Settings::clearValue("checkversion", "ignmajor");
24352435
Settings::clearValue("checkversion", "ignminor");
24362436
Settings::clearValue("checkversion", "ignpatch");
24372437
}
24382438

24392439
RemoteNetwork::get().fetch(QUrl("https://download.sqlitebrowser.org/currentrelease"), RemoteNetwork::RequestTypeCustom,
2440-
QString(), [this, silent](const QByteArray& reply) {
2440+
QString(), [this, automatic](const QByteArray& reply) {
24412441
QList<QByteArray> info = reply.split('\n');
24422442
if(info.size() >= 2)
24432443
{
@@ -2497,7 +2497,7 @@ void MainWindow::checkNewVersion(const bool silent)
24972497
}
24982498
else
24992499
{
2500-
if(!silent)
2500+
if(!automatic)
25012501
QMessageBox::information(this, QApplication::applicationName(), tr("You are using the latest version."));
25022502
}
25032503
}

src/MainWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private slots:
213213
void saveSqlResultsAsJson();
214214
void saveSqlResultsAsView();
215215
void loadExtension();
216-
void checkNewVersion(const bool silent);
216+
void checkNewVersion(const bool automatic);
217217
void openLinkWiki() const;
218218
void openLinkBugReport() const;
219219
void openLinkFeatureRequest() const;

0 commit comments

Comments
 (0)