Properly name settings method.

Took 11 minutes
This commit is contained in:
Lukas Brübach 2025-09-11 13:51:07 +02:00
parent 2dedb0e808
commit 0007afc064
3 changed files with 3 additions and 3 deletions

View file

@ -438,7 +438,7 @@ AppearanceSettingsPage::AppearanceSettingsPage()
connect(&homeTabBackgroundSourceBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, [this]() {
auto type = homeTabBackgroundSourceBox.currentData().value<BackgroundSources::Type>();
SettingsCache::instance().setHomeTabBackground(BackgroundSources::toId(type));
SettingsCache::instance().setHomeTabBackgroundSource(BackgroundSources::toId(type));
});
homeTabBackgroundShuffleFrequencySpinBox.setRange(0, 3600);

View file

@ -553,7 +553,7 @@ void SettingsCache::setThemeName(const QString &_themeName)
emit themeChanged();
}
void SettingsCache::setHomeTabBackground(const QString &_backgroundSource)
void SettingsCache::setHomeTabBackgroundSource(const QString &_backgroundSource)
{
homeTabBackgroundSource = _backgroundSource;
settings->setValue("home/background", homeTabBackgroundSource);

View file

@ -958,7 +958,7 @@ public slots:
void setSpoilerDatabasePath(const QString &_spoilerDatabasePath);
void setTokenDatabasePath(const QString &_tokenDatabasePath);
void setThemeName(const QString &_themeName);
void setHomeTabBackground(const QString &_backgroundSource);
void setHomeTabBackgroundSource(const QString &_backgroundSource);
void setHomeTabBackgroundShuffleFrequency(int _frequency);
void setTabVisualDeckStorageOpen(bool value);
void setTabServerOpen(bool value);