From 41756097a68225d9df48581406b4a09ecd37efe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Mustoha?= Date: Sun, 2 Sep 2018 18:10:49 +0200 Subject: [PATCH] Removed leftover script calling in the Settings code --- src/backend/model/settings/Settings.cpp | 15 +-------------- src/backend/model/settings/Settings.h | 3 --- 2 files changed, 1 insertion(+), 17 deletions(-) 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;