Mixer/Module: Save/restore 'active' state.
This commit is contained in:
parent
f213158c14
commit
4800ea9824
|
@ -97,6 +97,7 @@ Module::get ( Log_Entry &e ) const
|
|||
}
|
||||
e.add( ":is_default", is_default() );
|
||||
e.add( ":chain", chain() );
|
||||
e.add( ":active", active() );
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -138,6 +139,13 @@ Module::set ( Log_Entry &e )
|
|||
{
|
||||
is_default( atoi( v ) );
|
||||
}
|
||||
else if ( ! ( strcmp( s, ":active" ) ) )
|
||||
{
|
||||
if ( atoi( v ) )
|
||||
activate();
|
||||
else
|
||||
deactivate();
|
||||
}
|
||||
else if ( ! strcmp( s, ":chain" ) )
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Reference in New Issue