mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +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:
committed by
GitHub
parent
8e3a09ff94
commit
7e353588dc
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user