mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
clean up DownloadSettings (#5194)
* refactor DownloadSettings * only reset to default on first run * use c++ foreach * use addItems * move default urls to static const
This commit is contained in:
parent
5f1c03682f
commit
a8471f62bc
4 changed files with 21 additions and 53 deletions
|
|
@ -883,6 +883,7 @@ void MainWindow::startupConfigCheck()
|
|||
// no config found, 99% new clean install
|
||||
qDebug() << "Startup: old client version empty, assuming first start after clean install";
|
||||
alertForcedOracleRun(VERSION_STRING, false);
|
||||
SettingsCache::instance().downloads().resetToDefaultURLs(); // populate the download urls
|
||||
SettingsCache::instance().setClientVersion(VERSION_STRING);
|
||||
} else if (SettingsCache::instance().getClientVersion() != VERSION_STRING) {
|
||||
// config found, from another (presumably older) version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue