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

Apparently, wxConfigBase::Write() does not update values for next access on all platforms unless Flush() method is called. Added many calls to wxConfigBase::Flush() to make sure the Rad() calls get the right values.

This commit is contained in:
v.audacity
2012-08-02 06:03:19 +00:00
parent e92d30b6e8
commit ebb4f530bb
57 changed files with 139 additions and 46 deletions

View File

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