Move the automatic update check back into the main window class · dwlcj/sqlitebrowser@a75acc0 · GitHub
Skip to content

Commit a75acc0

Browse files
committed
Move the automatic update check back into the main window class
See issue sqlitebrowser#1595.
1 parent c6567f9 commit a75acc0

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

‎src/MainWindow.cpp‎

Lines changed: 9 additions & 0 deletions

‎src/RemoteDatabase.cpp‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ RemoteDatabase::RemoteDatabase() :
3030
connect(m_configurationManager, &QNetworkConfigurationManager::updateCompleted, [this]() {
3131
m_manager->setConfiguration(m_configurationManager->defaultConfiguration());
3232

33-
#ifdef CHECKNEWVERSION
34-
// Check for a new version if automatic update check aren't disabled in the settings dialog
35-
if(Settings::getValue("checkversion", "enabled").toBool())
36-
fetch("https://download.sqlitebrowser.org/currentrelease", RemoteDatabase::RequestTypeNewVersionCheck);
37-
#endif
33+
emit networkReady();
3834
});
3935

4036
// Set up SSL configuration

‎src/RemoteDatabase.h‎

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)