mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
Qt: add ConfigChanged signal to Settings
This commit is contained in:
parent
38a8d04c35
commit
a334ec3daa
@ -7,12 +7,14 @@
|
||||
#include <QSize>
|
||||
|
||||
#include "AudioCommon/AudioCommon.h"
|
||||
#include "Common/Config/Config.h"
|
||||
#include "Common/FileSearch.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Core.h"
|
||||
#include "DolphinQt2/GameList/GameListModel.h"
|
||||
#include "DolphinQt2/QtUtils/QueueOnObject.h"
|
||||
#include "DolphinQt2/Settings.h"
|
||||
#include "InputCommon/InputConfig.h"
|
||||
|
||||
@ -21,6 +23,9 @@ Settings::Settings()
|
||||
qRegisterMetaType<Core::State>();
|
||||
Core::SetOnStateChangedCallback(
|
||||
[this](Core::State new_state) { emit EmulationStateChanged(new_state); });
|
||||
|
||||
Config::AddConfigChangedCallback(
|
||||
[this] { QueueOnObject(this, [this] { emit ConfigChanged(); }); });
|
||||
}
|
||||
|
||||
Settings& Settings::Instance()
|
||||
|
@ -81,6 +81,7 @@ public:
|
||||
GameListModel* GetGameListModel() const;
|
||||
|
||||
signals:
|
||||
void ConfigChanged();
|
||||
void EmulationStateChanged(Core::State new_state);
|
||||
void ThemeChanged();
|
||||
void PathAdded(const QString&);
|
||||
|
Loading…
x
Reference in New Issue
Block a user