fix options saving
This commit is contained in:
@@ -115,6 +115,13 @@ static void MoveData( int &sel, bool &opt, bool ToSel )
|
||||
|
||||
template<class T>
|
||||
static void MoveData( int &sel, Preference<T> &opt, bool ToSel )
|
||||
{
|
||||
if( ToSel ) sel = opt;
|
||||
else opt.Set( sel );
|
||||
}
|
||||
|
||||
template<>
|
||||
static void MoveData( int &sel, Preference<bool> &opt, bool ToSel )
|
||||
{
|
||||
if( ToSel ) sel = opt;
|
||||
else opt.Set( !!sel );
|
||||
|
||||
Reference in New Issue
Block a user