mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +02:00
Fix ResetConfiguration Device Toolbar Size
The device toolbar was coming out too short after a 'ResetConfiguration'. The upgrade detection process was messing with it. The fix is to remember what version we are on.
This commit is contained in:
parent
4a56af43aa
commit
6f20ca2403
@ -398,6 +398,16 @@ void OnResetConfig(const CommandContext &context)
|
||||
gPrefs->Flush();
|
||||
DoReloadPreferences(project);
|
||||
ToolManager::OnResetToolBars(context);
|
||||
|
||||
// These are necessary to preserve the newly correctly laid out toolbars.
|
||||
// In particular the Device Toolbar ends up short on next restart,
|
||||
// if they are left out.
|
||||
gPrefs->Write(wxT("/PrefsVersion"), wxString(wxT(AUDACITY_PREFS_VERSION_STRING)));
|
||||
// write out the version numbers to the prefs file for future checking
|
||||
gPrefs->Write(wxT("/Version/Major"), AUDACITY_VERSION);
|
||||
gPrefs->Write(wxT("/Version/Minor"), AUDACITY_RELEASE);
|
||||
gPrefs->Write(wxT("/Version/Micro"), AUDACITY_REVISION);
|
||||
|
||||
gPrefs->Flush();
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user