1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-28 17:15:45 +01:00

Remove uses of overload of TieRadioButton taking int values...

... and migrate old preferences with EnumSetting
This commit is contained in:
Paul Licameli
2019-03-19 12:06:57 -04:00
parent 0d910bbe02
commit 51115903d4
7 changed files with 100 additions and 28 deletions

View File

@@ -34,6 +34,7 @@
#include "DirManager.h"
#include "Prefs.h"
#include "ProjectFileIORegistry.h"
#include "prefs/ImportExportPrefs.h"
#include "InconsistencyException.h"
@@ -847,8 +848,7 @@ bool NoteTrack::ExportMIDI(const wxString &f) const
bool NoteTrack::ExportAllegro(const wxString &f) const
{
double offset = GetOffset();
bool in_seconds;
gPrefs->Read(wxT("/FileFormats/AllegroStyle"), &in_seconds, true);
auto in_seconds = ImportExportPrefs::AllegroStyleSetting.ReadEnum();
auto &seq = GetSeq();
if (in_seconds) {
seq.convert_to_seconds();