mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Force Oracle run on new install/update (#3497)
* Force Oracle run on new install/update Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com> * Add settings option to disable such a check Signed-off-by: Zach Halpern <ZaHalpern+github@gmail.com>
This commit is contained in:
parent
273d5d89b7
commit
41bfbf2e83
6 changed files with 75 additions and 5 deletions
|
|
@ -177,6 +177,7 @@ SettingsCache::SettingsCache()
|
|||
mbDownloadSpoilers = settings->value("personal/downloadspoilers", false).toBool();
|
||||
|
||||
notifyAboutUpdates = settings->value("personal/updatenotification", true).toBool();
|
||||
notifyAboutNewVersion = settings->value("personal/newversionnotification", true).toBool();
|
||||
updateReleaseChannel = settings->value("personal/updatereleasechannel", 0).toInt();
|
||||
|
||||
lang = settings->value("personal/lang").toString();
|
||||
|
|
@ -275,6 +276,7 @@ SettingsCache::SettingsCache()
|
|||
spectatorsCanSeeEverything = settings->value("game/spectatorscanseeeverything", false).toBool();
|
||||
rememberGameSettings = settings->value("game/remembergamesettings", true).toBool();
|
||||
clientID = settings->value("personal/clientid", "notset").toString();
|
||||
clientVersion = settings->value("personal/clientversion", "notset").toString();
|
||||
knownMissingFeatures = settings->value("interface/knownmissingfeatures", "").toString();
|
||||
}
|
||||
|
||||
|
|
@ -589,6 +591,12 @@ void SettingsCache::setClientID(QString _clientID)
|
|||
settings->setValue("personal/clientid", clientID);
|
||||
}
|
||||
|
||||
void SettingsCache::setClientVersion(QString _clientVersion)
|
||||
{
|
||||
clientVersion = std::move(_clientVersion);
|
||||
settings->setValue("personal/clientversion", clientVersion);
|
||||
}
|
||||
|
||||
QStringList SettingsCache::getCountries() const
|
||||
{
|
||||
static QStringList countries = QStringList() << "ad"
|
||||
|
|
@ -910,6 +918,12 @@ void SettingsCache::setNotifyAboutUpdate(int _notifyaboutupdate)
|
|||
settings->setValue("personal/updatenotification", notifyAboutUpdates);
|
||||
}
|
||||
|
||||
void SettingsCache::setNotifyAboutNewVersion(int _notifyaboutnewversion)
|
||||
{
|
||||
notifyAboutNewVersion = static_cast<bool>(_notifyaboutnewversion);
|
||||
settings->setValue("personal/newversionnotification", notifyAboutNewVersion);
|
||||
}
|
||||
|
||||
void SettingsCache::setDownloadSpoilerStatus(bool _spoilerStatus)
|
||||
{
|
||||
mbDownloadSpoilers = _spoilerStatus;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue