mirror of
https://github.com/transmission/transmission
synced 2025-01-30 10:52:00 +00:00
fix: some typos in macos source code comments (#5475)
This commit is contained in:
parent
908e8a551e
commit
52c45eb85f
3 changed files with 6 additions and 6 deletions
|
@ -3002,7 +3002,7 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool
|
|||
{
|
||||
//for each torrent, removes the previous piece info if it's not in allTorrents, and keeps track of which torrents we already found in allTorrents
|
||||
void (^removePreviousFinishedPieces)(id, NSUInteger, BOOL*) = ^(Torrent* torrent, NSUInteger /*idx*/, BOOL* /*stop*/) {
|
||||
//we used to keep track of which torrents we already found in allTorrents, but it wasn't safe fo concurrent enumeration
|
||||
//we used to keep track of which torrents we already found in allTorrents, but it wasn't safe for concurrent enumeration
|
||||
if (![allTorrents containsObject:torrent])
|
||||
{
|
||||
torrent.previousFinishedPieces = nil;
|
||||
|
@ -4598,7 +4598,7 @@ void onTorrentCompletenessChanged(tr_torrent* tor, tr_completeness status, bool
|
|||
return YES;
|
||||
}
|
||||
|
||||
//only enable some items if it is in a context menu or the window is useable
|
||||
//only enable some items if it is in a context menu or the window is usable
|
||||
BOOL canUseTable = self.fWindow.keyWindow || menuItem.menu.supermenu != NSApp.mainMenu;
|
||||
|
||||
//enable open items
|
||||
|
|
|
@ -256,7 +256,7 @@ typedef NS_ENUM(NSInteger, TrackerSegmentTag) {
|
|||
[self.fTrackerTable reloadData];
|
||||
[self.fTrackerTable deselectAll:self];
|
||||
|
||||
[NSNotificationCenter.defaultCenter postNotificationName:@"UpdateUI" object:nil]; //incase sort by tracker
|
||||
[NSNotificationCenter.defaultCenter postNotificationName:@"UpdateUI" object:nil]; //in case sort by tracker
|
||||
}
|
||||
|
||||
- (void)addRemoveTracker:(id)sender
|
||||
|
@ -463,7 +463,7 @@ typedef NS_ENUM(NSInteger, TrackerSegmentTag) {
|
|||
|
||||
[self.fTrackerTable endUpdates];
|
||||
|
||||
[NSNotificationCenter.defaultCenter postNotificationName:@"UpdateUI" object:nil]; //incase sort by tracker
|
||||
[NSNotificationCenter.defaultCenter postNotificationName:@"UpdateUI" object:nil]; //in case sort by tracker
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -828,10 +828,10 @@ bool trashDataFile(char const* filename, void* /*user_data*/, tr_error** error)
|
|||
}
|
||||
if (self.fStat->leftUntilDone <= 0)
|
||||
{
|
||||
// We return smallest amount of time remaining for simpliest compliance with sorting.
|
||||
// We return smallest amount of time remaining for simplest compliance with sorting.
|
||||
return 0;
|
||||
}
|
||||
// We return highest amount of time remaining for simpliest compliance with sorting.
|
||||
// We return highest amount of time remaining for simplest compliance with sorting.
|
||||
return LONG_MAX;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue