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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user