mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Properly name settings method.
Took 11 minutes
This commit is contained in:
parent
2dedb0e808
commit
0007afc064
3 changed files with 3 additions and 3 deletions
|
|
@ -438,7 +438,7 @@ AppearanceSettingsPage::AppearanceSettingsPage()
|
||||||
|
|
||||||
connect(&homeTabBackgroundSourceBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [this]() {
|
connect(&homeTabBackgroundSourceBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [this]() {
|
||||||
auto type = homeTabBackgroundSourceBox.currentData().value<BackgroundSources::Type>();
|
auto type = homeTabBackgroundSourceBox.currentData().value<BackgroundSources::Type>();
|
||||||
SettingsCache::instance().setHomeTabBackground(BackgroundSources::toId(type));
|
SettingsCache::instance().setHomeTabBackgroundSource(BackgroundSources::toId(type));
|
||||||
});
|
});
|
||||||
|
|
||||||
homeTabBackgroundShuffleFrequencySpinBox.setRange(0, 3600);
|
homeTabBackgroundShuffleFrequencySpinBox.setRange(0, 3600);
|
||||||
|
|
|
||||||
|
|
@ -553,7 +553,7 @@ void SettingsCache::setThemeName(const QString &_themeName)
|
||||||
emit themeChanged();
|
emit themeChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SettingsCache::setHomeTabBackground(const QString &_backgroundSource)
|
void SettingsCache::setHomeTabBackgroundSource(const QString &_backgroundSource)
|
||||||
{
|
{
|
||||||
homeTabBackgroundSource = _backgroundSource;
|
homeTabBackgroundSource = _backgroundSource;
|
||||||
settings->setValue("home/background", homeTabBackgroundSource);
|
settings->setValue("home/background", homeTabBackgroundSource);
|
||||||
|
|
|
||||||
|
|
@ -958,7 +958,7 @@ public slots:
|
||||||
void setSpoilerDatabasePath(const QString &_spoilerDatabasePath);
|
void setSpoilerDatabasePath(const QString &_spoilerDatabasePath);
|
||||||
void setTokenDatabasePath(const QString &_tokenDatabasePath);
|
void setTokenDatabasePath(const QString &_tokenDatabasePath);
|
||||||
void setThemeName(const QString &_themeName);
|
void setThemeName(const QString &_themeName);
|
||||||
void setHomeTabBackground(const QString &_backgroundSource);
|
void setHomeTabBackgroundSource(const QString &_backgroundSource);
|
||||||
void setHomeTabBackgroundShuffleFrequency(int _frequency);
|
void setHomeTabBackgroundShuffleFrequency(int _frequency);
|
||||||
void setTabVisualDeckStorageOpen(bool value);
|
void setTabVisualDeckStorageOpen(bool value);
|
||||||
void setTabServerOpen(bool value);
|
void setTabServerOpen(bool value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue