mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
Bug 2726 - Enh: Some preference changes are not written until Audacity exits
Also fixed a bug with GetPreferences, where uninitialised pointers could be used that were only meant for use when editing values (in which path they would be initialised).
This commit is contained in:
parent
da9283ac6c
commit
ae5e768023
@ -207,7 +207,8 @@ void DirectoriesPrefs::PopulateOrExchange(ShuttleGui &S)
|
||||
{PreferenceKey(Operation::Save, PathType::User),
|
||||
wxT("")},
|
||||
30);
|
||||
mSaveText->SetValidator(FilesystemValidator(XO("Projects cannot be saved to FAT drives.")));
|
||||
if( mSaveText )
|
||||
mSaveText->SetValidator(FilesystemValidator(XO("Projects cannot be saved to FAT drives.")));
|
||||
S.Id(SaveButtonID).AddButton(XXO("B&rowse..."));
|
||||
|
||||
S.Id(ImportTextID);
|
||||
@ -239,12 +240,14 @@ void DirectoriesPrefs::PopulateOrExchange(ShuttleGui &S)
|
||||
{PreferenceKey(Operation::Temp, PathType::_None),
|
||||
wxT("")},
|
||||
30);
|
||||
mTempText->SetValidator(FilesystemValidator(XO("Temporary files directory cannot be on a FAT drive.")));
|
||||
if( mTempText )
|
||||
mTempText->SetValidator(FilesystemValidator(XO("Temporary files directory cannot be on a FAT drive.")));
|
||||
S.Id(TempButtonID).AddButton(XXO("Brow&se..."));
|
||||
|
||||
S.AddPrompt(XXO("&Free Space:"));
|
||||
mFreeSpace = S.Style(wxTE_READONLY).AddTextBox({}, wxT(""), 30);
|
||||
mFreeSpace->SetName(XO("Free Space").Translation());
|
||||
if( mFreeSpace )
|
||||
mFreeSpace->SetName(XO("Free Space").Translation());
|
||||
}
|
||||
S.EndMultiColumn();
|
||||
}
|
||||
|
@ -153,6 +153,7 @@ void FileHistory::NotifyMenus()
|
||||
for (auto pMenu : mMenus)
|
||||
if (pMenu)
|
||||
NotifyMenu(pMenu);
|
||||
Save(*gPrefs, wxT("RecentFiles"));
|
||||
}
|
||||
|
||||
void FileHistory::NotifyMenu(wxMenu *menu)
|
||||
|
Loading…
x
Reference in New Issue
Block a user