mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
when showing the tooltip/copying message log rows, only show the file name, not the full path
This commit is contained in:
@@ -357,7 +357,8 @@
|
||||
{
|
||||
NSString * file;
|
||||
if ((file = [message objectForKey: @"File"]))
|
||||
return [NSString stringWithFormat: @"%@:%@", [message objectForKey: @"File"], [message objectForKey: @"Line"]];
|
||||
return [NSString stringWithFormat: @"%@:%@", [[message objectForKey: @"File"] lastPathComponent],
|
||||
[message objectForKey: @"Line"]];
|
||||
else
|
||||
return nil;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user