1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-20 15:41:18 +01:00

Multiple export dialog bugs fixed

Bug 2062 - Export as WAV does not remember the previously used setting
Bug 1355 - "Other uncompressed files" does not (visually) update target
           file extension according to the chosen "Header" type
Bug 1356 - "Other uncompressed files" forces the default extension for
           the format in the exported file
Bug 1381 - Export other uncompressed formats incorrectly assumes max 255
           channels

(and possibly others...not the best bugzilla searcher)
This commit is contained in:
Leland Lucius
2020-03-23 00:47:17 -05:00
parent 8570ab7402
commit 38bf51afea
9 changed files with 456 additions and 281 deletions

View File

@@ -66,6 +66,8 @@ public:
#endif
virtual bool SupportsExtraControl() const;
virtual void SetFileExtension(const wxString& extension);
// implementation only

View File

@@ -793,3 +793,13 @@ void FileDialog::ModalFinishedCallback(void* panel, int returnCode)
UnsubclassWin();
[(NSSavePanel*) panel setAccessoryView:nil];
}
// Change the currently displayed extension
void FileDialog::SetFileExtension(const wxString& extension)
{
NSSavePanel* sPanel = (NSSavePanel*) GetWXWindow();
m_filterExtensions[m_filterIndex] = extension;
NSArray* types = GetTypesFromExtension(m_filterExtensions[m_filterIndex],m_currentExtensions);
[sPanel setAllowedFileTypes:types];
}