mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 17:44:01 -07:00
Apply suggestions from code review
This commit is contained in:
parent
e5efcfabc1
commit
f779f639da
1 changed files with 3 additions and 3 deletions
|
|
@ -938,13 +938,13 @@ void MainWindow::startupConfigCheck()
|
||||||
const auto reloadOk0 = QtConcurrent::run([] { CardDatabaseManager::getInstance()->loadCardDatabases(); });
|
const auto reloadOk0 = QtConcurrent::run([] { CardDatabaseManager::getInstance()->loadCardDatabases(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
qCInfo(WindowMainStartupShortcutsLog) << "[MainWindow] Migrating shortcuts after update detected.";
|
qCInfo(WindowMainStartupShortcutsLog) << "Migrating shortcuts after update detected.";
|
||||||
SettingsCache::instance().shortcuts().migrateShortcuts();
|
SettingsCache::instance().shortcuts().migrateShortcuts();
|
||||||
|
|
||||||
if (SettingsCache::instance().getCheckUpdatesOnStartup()) {
|
if (SettingsCache::instance().getCheckUpdatesOnStartup()) {
|
||||||
if (QString(VERSION_STRING).contains("custom", Qt::CaseInsensitive)) {
|
if (QString(VERSION_STRING).contains("custom", Qt::CaseInsensitive)) {
|
||||||
qCInfo(WindowMainStartupShortcutsLog)
|
qCInfo(WindowMainStartupShortcutsLog)
|
||||||
<< "[MainWindow] Update has changed to custom version, disabling auto update";
|
<< "Update has changed to custom version, disabling auto update";
|
||||||
SettingsCache::instance().setCheckUpdatesOnStartup(Qt::Unchecked);
|
SettingsCache::instance().setCheckUpdatesOnStartup(Qt::Unchecked);
|
||||||
} else {
|
} else {
|
||||||
int channel = 0;
|
int channel = 0;
|
||||||
|
|
@ -953,7 +953,7 @@ void MainWindow::startupConfigCheck()
|
||||||
}
|
}
|
||||||
if (SettingsCache::instance().getUpdateReleaseChannelIndex() != channel) {
|
if (SettingsCache::instance().getUpdateReleaseChannelIndex() != channel) {
|
||||||
qCInfo(WindowMainStartupShortcutsLog)
|
qCInfo(WindowMainStartupShortcutsLog)
|
||||||
<< "[MainWindow] Update has changed beta state, updating release channel.";
|
<< "Update has changed beta state, updating release channel.";
|
||||||
SettingsCache::instance().setUpdateReleaseChannelIndex(channel);
|
SettingsCache::instance().setUpdateReleaseChannelIndex(channel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue