[macOS] Apply ObjC modernizations once again. (#3358)

This doesn't include designated initializers refactoring.
This commit is contained in:
Dzmitry Neviadomski
2022-06-29 07:20:42 +03:00
committed by GitHub
parent 88a3149ce4
commit 37f7f83d4d
18 changed files with 59 additions and 58 deletions

View File

@@ -133,7 +133,7 @@ BlocklistDownloaderViewController* fBLViewController = nil;
[NSBundle.mainBundle loadNibNamed:@"BlocklistStatusWindow" owner:self topLevelObjects:NULL];
BlocklistDownloader* downloader = [BlocklistDownloader downloader];
[downloader setViewController:self]; //do before showing the sheet to ensure it doesn't slide out with placeholder text
downloader.viewController = self; //do before showing the sheet to ensure it doesn't slide out with placeholder text
[self.fPrefsController.window beginSheet:self.fStatusWindow completionHandler:nil];
}