MCPcopy Create free account
hub / github.com/Faster3ck/Converseen / checkVersion

Method checkVersion

src/mainwindowimpl.cpp:1237–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1235}
1236
1237void MainWindowImpl::checkVersion()
1238{
1239 int savedVersion = IniSettings::currentVersion();
1240 int currentVersion = globals::CURRENT_INTERNAL_VERSION;
1241
1242 if (savedVersion < currentVersion) {
1243#if (defined(Q_OS_WIN) || defined(Q_OS_MACOS))
1244 // Open thank you page
1245 QString welcomePage = QString("https://converseen.fasterland.net/thank/");
1246 QDesktopServices::openUrl(QUrl(welcomePage, QUrl::TolerantMode));
1247#endif
1248 IniSettings::setCurrentVersion(currentVersion);
1249 }
1250}
1251
1252void MainWindowImpl::saveSettings()
1253{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected