1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 09:01:15 +02:00

Proper initialization of menu handlers from preferences

This commit is contained in:
Paul Licameli
2018-10-28 12:58:39 -04:00
parent cda9715ce6
commit b4fc4b9ceb
2 changed files with 8 additions and 0 deletions

View File

@@ -526,6 +526,10 @@ void UpdatePrefs() override
mCircularTrackNavigation =
gPrefs->ReadBool(wxT("/GUI/CircularTrackNavigation"), false);
}
Handler()
{
UpdatePrefs();
}
}; // struct Handler

View File

@@ -1070,6 +1070,10 @@ void UpdatePrefs() override
gPrefs->Read(wxT("/AudioIO/SeekShortPeriod"), &mSeekInfo.mSeekShort, 1.0);
gPrefs->Read(wxT("/AudioIO/SeekLongPeriod"), &mSeekInfo.mSeekShort, 15.0);
}
Handler()
{
UpdatePrefs();
}
}; // struct Handler