Config: Trigger callbacks on layer save

And remove an extraneous callback trigger in Config::Load.
This commit is contained in:
Léo Lam
2017-02-15 23:06:06 +01:00
parent 9c3265f1ef
commit 7bd34ac0b5

View File

@ -353,6 +353,7 @@ void Layer::Save()
m_loader->Save(this); m_loader->Save(this);
ClearDirty(); ClearDirty();
CallbackSystems();
} }
bool Layer::IsDirty() const bool Layer::IsDirty() const
@ -436,8 +437,6 @@ void Load()
{ {
for (auto& layer : s_layers) for (auto& layer : s_layers)
layer.second->Load(); layer.second->Load();
CallbackSystems();
} }
void Save() void Save()