Took 14 minutes


Took 2 minutes
This commit is contained in:
Lukas Brübach 2025-07-10 00:58:36 +02:00
parent 0e45652f3f
commit ef93d8a253
4 changed files with 10 additions and 3 deletions

View file

@ -1361,13 +1361,13 @@ void SettingsCache::setDefaultStartingLifeTotal(const int _defaultStartingLifeTo
{ {
defaultStartingLifeTotal = _defaultStartingLifeTotal; defaultStartingLifeTotal = _defaultStartingLifeTotal;
settings->setValue("game/defaultstartinglifetotal", defaultStartingLifeTotal); settings->setValue("game/defaultstartinglifetotal", defaultStartingLifeTotal);
}; }
void SettingsCache::setShareDecklistsOnLoad(const bool _shareDecklistsOnLoad) void SettingsCache::setShareDecklistsOnLoad(const bool _shareDecklistsOnLoad)
{ {
shareDecklistsOnLoad = _shareDecklistsOnLoad; shareDecklistsOnLoad = _shareDecklistsOnLoad;
settings->setValue("game/sharedecklistsonload", shareDecklistsOnLoad); settings->setValue("game/sharedecklistsonload", shareDecklistsOnLoad);
}; }
void SettingsCache::setCheckUpdatesOnStartup(QT_STATE_CHANGED_T value) void SettingsCache::setCheckUpdatesOnStartup(QT_STATE_CHANGED_T value)
{ {
@ -1380,6 +1380,7 @@ void SettingsCache::setStartupCardUpdateCheckPromptForUpdate(bool value)
startupCardUpdateCheckPromptForUpdate = value; startupCardUpdateCheckPromptForUpdate = value;
settings->setValue("personal/startupCardUpdateCheckPromptForUpdate", startupCardUpdateCheckPromptForUpdate); settings->setValue("personal/startupCardUpdateCheckPromptForUpdate", startupCardUpdateCheckPromptForUpdate);
} }
void SettingsCache::setStartupCardUpdateCheckAlwaysUpdate(bool value) void SettingsCache::setStartupCardUpdateCheckAlwaysUpdate(bool value)
{ {
startupCardUpdateCheckAlwaysUpdate = value; startupCardUpdateCheckAlwaysUpdate = value;

View file

@ -16,7 +16,7 @@ message ServerInfo_Game {
optional bool spectators_need_password = 12; optional bool spectators_need_password = 12;
optional bool spectators_can_chat = 13; optional bool spectators_can_chat = 13;
optional bool spectators_omniscient = 14; optional bool spectators_omniscient = 14;
optional bool share_decklists_on_load = 15; optional bool share_decklists_on_load = 15;
optional uint32 player_count = 30; optional uint32 player_count = 30;
optional uint32 spectators_count = 31; optional uint32 spectators_count = 31;
optional bool started = 50; optional bool started = 50;

View file

@ -402,6 +402,9 @@ void SettingsCache::setCreateGameAsSpectator(const bool /* _createGameAsSpectato
void SettingsCache::setDefaultStartingLifeTotal(const int /* _startingLifeTotal */) void SettingsCache::setDefaultStartingLifeTotal(const int /* _startingLifeTotal */)
{ {
} }
void SettingsCache::setShareDecklistsOnLoad(const bool /* _shareDecklistsOnLoad */)
{
}
void SettingsCache::setRememberGameSettings(const bool /* _rememberGameSettings */) void SettingsCache::setRememberGameSettings(const bool /* _rememberGameSettings */)
{ {
} }

View file

@ -406,6 +406,9 @@ void SettingsCache::setCreateGameAsSpectator(const bool /* _createGameAsSpectato
void SettingsCache::setDefaultStartingLifeTotal(const int /* _startingLifeTotal */) void SettingsCache::setDefaultStartingLifeTotal(const int /* _startingLifeTotal */)
{ {
} }
void SettingsCache::setShareDecklistsOnLoad(const bool /* _shareDecklistsOnLoad */)
{
}
void SettingsCache::setRememberGameSettings(const bool /* _rememberGameSettings */) void SettingsCache::setRememberGameSettings(const bool /* _rememberGameSettings */)
{ {
} }