mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Remove beginSheetModalForWindow: deprecation warnings
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
|
||||
- (id) initWithPrefsController: (PrefsController *) prefsController;
|
||||
- (void) startDownload;
|
||||
- (void) failureSheetClosed: (NSAlert *) alert returnCode: (NSInteger) code contextInfo: (void *) info;
|
||||
|
||||
@end
|
||||
|
||||
@@ -118,8 +117,11 @@ BlocklistDownloaderViewController * fBLViewController = nil;
|
||||
|
||||
[alert setInformativeText: error];
|
||||
|
||||
[alert beginSheetModalForWindow: [fPrefsController window] modalDelegate: self
|
||||
didEndSelector: @selector(failureSheetClosed:returnCode:contextInfo:) contextInfo: nil];
|
||||
[alert beginSheetModalForWindow:[fPrefsController window] completionHandler:^(NSModalResponse returnCode) {
|
||||
[[alert window] orderOut: self];
|
||||
|
||||
fBLViewController = nil;
|
||||
}];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -147,11 +149,4 @@ BlocklistDownloaderViewController * fBLViewController = nil;
|
||||
[NSApp beginSheet: fStatusWindow modalForWindow: [fPrefsController window] modalDelegate: nil didEndSelector: nil contextInfo: nil];
|
||||
}
|
||||
|
||||
- (void) failureSheetClosed: (NSAlert *) alert returnCode: (NSInteger) code contextInfo: (void *) info
|
||||
{
|
||||
[[alert window] orderOut: self];
|
||||
|
||||
fBLViewController = nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user