mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
[macOS] Apply ObjC modernizations once again. (#3358)
This doesn't include designated initializers refactoring.
This commit is contained in:
committed by
GitHub
parent
88a3149ce4
commit
37f7f83d4d
@@ -107,7 +107,7 @@
|
||||
self.fNameField.toolTip = name;
|
||||
|
||||
//disable fullscreen support
|
||||
[self.window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenNone];
|
||||
self.window.collectionBehavior = NSWindowCollectionBehaviorFullScreenNone;
|
||||
|
||||
self.fIconView.image = self.torrent.icon;
|
||||
|
||||
@@ -233,7 +233,7 @@
|
||||
[alert addButtonWithTitle:NSLocalizedString(@"Add", "Add torrent -> same name -> button")];
|
||||
alert.showsSuppressionButton = YES;
|
||||
|
||||
[alert beginSheetModalForWindow:[self window] completionHandler:^(NSModalResponse returnCode) {
|
||||
[alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) {
|
||||
if (alert.suppressionButton.state == NSControlStateValueOn)
|
||||
{
|
||||
[NSUserDefaults.standardUserDefaults setBool:NO forKey:@"WarningFolderDataSameName"];
|
||||
|
||||
Reference in New Issue
Block a user