1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 14:13:23 +00:00

fix: Add tooltip explaining why auto adding for magnets is unavailable. (#5035)

Fixes #5034

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
This commit is contained in:
Dzmitry Neviadomski 2023-02-25 01:44:55 +03:00 committed by GitHub
parent 8e3a09ff94
commit 7e353588dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -994,11 +994,15 @@ static NSString* const kWebUIURLFormat = @"http://localhost:%ld/";
//always show the add window for magnet links when the download location is the same as the torrent file
self.fShowMagnetAddWindowCheck.state = NSControlStateValueOn;
self.fShowMagnetAddWindowCheck.enabled = NO;
self.fShowMagnetAddWindowCheck.toolTip = NSLocalizedString(
@"This option is not available if Default location is set to Same as torrent file.",
"Preferences -> Transfers -> Adding -> Magnet tooltip");
}
else
{
self.fShowMagnetAddWindowCheck.state = [self.fDefaults boolForKey:@"MagnetOpenAsk"];
self.fShowMagnetAddWindowCheck.enabled = YES;
self.fShowMagnetAddWindowCheck.toolTip = nil;
}
}

View file

@ -986,6 +986,9 @@
/* Create torrent -> no files -> title */
"This folder contains no files." = "This folder contains no files.";
/* Preferences -> Transfers -> Adding -> Magnet tooltip */
"This option is not available if Default location is set to Same as torrent file." = "This option is not available if Default location is set to Same as torrent file.";
/* Removal confirm panel -> message */
"This transfer is active. Once removed, continuing the transfer will require the torrent file or magnet link." = "This transfer is active. Once removed, continuing the transfer will require the torrent file or magnet link.";