1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Remove flushing of preferences in ShuttlePrefs and only

flush when all settings have been written.
This commit is contained in:
Leland Lucius
2015-12-21 20:07:24 -06:00
parent d3fdccffce
commit 9dd79c9f80
9 changed files with 17 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ bool ShuttlePrefs::TransferBool( const wxString & Name, bool & bValue, const boo
}
else
{
return (gPrefs->Write( Name, bValue ) && gPrefs->Flush());
return gPrefs->Write( Name, bValue );
}
return true;
}
@@ -57,7 +57,7 @@ bool ShuttlePrefs::TransferDouble( const wxString & Name, double & dValue, const
}
else
{
return (gPrefs->Write( Name, dValue ) && gPrefs->Flush());
return gPrefs->Write( Name, dValue );
}
return true;
}
@@ -71,7 +71,7 @@ bool ShuttlePrefs::TransferInt( const wxString & Name, int & iValue, const int &
}
else
{
return (gPrefs->Write( Name, iValue ) && gPrefs->Flush());
return gPrefs->Write( Name, iValue );
}
return true;
}
@@ -85,7 +85,7 @@ bool ShuttlePrefs::TransferString( const wxString & Name, wxString & strValue, c
}
else
{
return (gPrefs->Write( Name, strValue ) && gPrefs->Flush());
return gPrefs->Write( Name, strValue );
}
return true;
}