Add callbacks to settings variables, use to update radar dialog location in settings dialog

This commit is contained in:
Dan Paulat 2022-12-22 00:56:52 -06:00
parent 87f611e026
commit f7cc902eef
5 changed files with 136 additions and 2 deletions

View file

@ -67,6 +67,12 @@ void SettingsInterface<T>::SetSettingsVariable(SettingsVariable<T>& variable)
p->variable_ = &variable;
}
template<class T>
SettingsVariable<T>* SettingsInterface<T>::GetSettingsVariable() const
{
return p->variable_;
}
template<class T>
bool SettingsInterface<T>::Commit()
{