mirror of https://github.com/mpv-player/mpv
cocoa: sort files opened from Finder the same way Finder does
Fixes #497
This commit is contained in:
parent
1485711d61
commit
32fea9e607
|
@ -264,7 +264,8 @@ Application *mpv_shared_app(void)
|
|||
}
|
||||
}];
|
||||
|
||||
self.files = [filesToOpen sortedArrayUsingSelector:@selector(compare:)];
|
||||
SEL cmpsel = @selector(localizedStandardCompare:);
|
||||
self.files = [filesToOpen sortedArrayUsingSelector:cmpsel];
|
||||
if (self.willStopOnOpenEvent) {
|
||||
self.willStopOnOpenEvent = NO;
|
||||
cocoa_stop_runloop();
|
||||
|
|
Loading…
Reference in New Issue