mirror of
https://github.com/transmission/transmission
synced 2025-02-07 06:54:40 +00:00
replace the deprecated setRequiredFileType: with setAllowedFileTypes:
This commit is contained in:
parent
baaf5b8d3f
commit
6485bea986
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@
|
|||
[descriptors release];
|
||||
|
||||
NSSavePanel * panel = [NSSavePanel savePanel];
|
||||
[panel setRequiredFileType: @"txt"];
|
||||
[panel setAllowedFileTypes: [NSArray arrayWithObject: @"txt"]];
|
||||
[panel setCanSelectHiddenExtension: YES];
|
||||
|
||||
[panel beginSheetForDirectory: nil file: NSLocalizedString(@"untitled", "Save log panel -> default file name")
|
||||
|
|
Loading…
Reference in a new issue