mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 01:23:57 -07:00
format
This commit is contained in:
parent
f779f639da
commit
f71ea7d26d
1 changed files with 2 additions and 4 deletions
|
|
@ -943,8 +943,7 @@ void MainWindow::startupConfigCheck()
|
||||||
|
|
||||||
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) << "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;
|
||||||
|
|
@ -952,8 +951,7 @@ void MainWindow::startupConfigCheck()
|
||||||
channel = 1;
|
channel = 1;
|
||||||
}
|
}
|
||||||
if (SettingsCache::instance().getUpdateReleaseChannelIndex() != channel) {
|
if (SettingsCache::instance().getUpdateReleaseChannelIndex() != channel) {
|
||||||
qCInfo(WindowMainStartupShortcutsLog)
|
qCInfo(WindowMainStartupShortcutsLog) << "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