mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Settings: Remove ConfigChangedCallback on shutdown
This commit is contained in:
parent
9c40a7976b
commit
8724daf44e
2 changed files with 7 additions and 2 deletions
|
@ -59,7 +59,7 @@ Settings::Settings()
|
|||
});
|
||||
});
|
||||
|
||||
Config::AddConfigChangedCallback([this] {
|
||||
m_config_changed_callback_id = Config::AddConfigChangedCallback([this] {
|
||||
static std::atomic<bool> do_once{true};
|
||||
if (do_once.exchange(false))
|
||||
{
|
||||
|
@ -94,7 +94,10 @@ Settings::Settings()
|
|||
});
|
||||
}
|
||||
|
||||
Settings::~Settings() = default;
|
||||
Settings::~Settings()
|
||||
{
|
||||
Config::RemoveConfigChangedCallback(m_config_changed_callback_id);
|
||||
}
|
||||
|
||||
void Settings::UnregisterDevicesChangedCallback()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue