diff --git a/src/backend/model/settings/Settings.cpp b/src/backend/model/settings/Settings.cpp index 78f0dbf30..723de3cb8 100644 --- a/src/backend/model/settings/Settings.cpp +++ b/src/backend/model/settings/Settings.cpp @@ -20,7 +20,6 @@ #include "AppArgs.h" #include "LocaleUtils.h" #include "Paths.h" -#include "ScriptRunner.h" #include #include @@ -56,12 +55,7 @@ Settings::Settings(QObject* parent) , m_locales(this) , m_themes(this) , m_providers(this) -{ - connect(&m_locales, &LocaleList::localeChanged, - this, &Settings::callScripts); - connect(&m_themes, &ThemeList::themeChanged, - this, &Settings::callScripts); -} +{} void Settings::setFullscreen(bool new_val) { @@ -74,13 +68,6 @@ void Settings::setFullscreen(bool new_val) emit fullscreenChanged(); } -void Settings::callScripts() -{ - using ScriptEvent = ScriptRunner::EventType; - ScriptRunner::findAndRunScripts(ScriptEvent::CONFIG_CHANGED); - ScriptRunner::findAndRunScripts(ScriptEvent::SETTINGS_CHANGED); -} - QStringList Settings::gameDirs() const { QSet dirset; diff --git a/src/backend/model/settings/Settings.h b/src/backend/model/settings/Settings.h index 78dde1218..c1d7c9125 100644 --- a/src/backend/model/settings/Settings.h +++ b/src/backend/model/settings/Settings.h @@ -57,9 +57,6 @@ class Settings : public QObject { void fullscreenChanged(); void gameDirsChanged(); -private slots: - void callScripts(); - private: LocaleList m_locales; ThemeList m_themes;