Merge pull request #11088 from JosJuice/uicommon-set-enable-alert

Move a SetEnableAlert call to UICommon
This commit is contained in:
Mai
2022-09-29 09:09:29 -04:00
committed by GitHub
11 changed files with 81 additions and 67 deletions

View File

@ -120,6 +120,13 @@ void SetBaseOrCurrent(const Info<T>& info, const std::common_type_t<T>& value)
Set<T>(LayerType::CurrentRun, info, value);
}
template <typename T>
void DeleteKey(LayerType layer, const Info<T>& info)
{
if (GetLayer(layer)->DeleteKey(info.GetLocation()))
OnConfigChanged();
}
// Used to defer OnConfigChanged until after the completion of many config changes.
class ConfigChangeCallbackGuard
{