Permalink
Browse files
Fix a misuse of `filter(where:)`.
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+1
−1
iina/HistoryWindowController.swift
|
@@ -232,7 +232,7 @@ class HistoryWindowController: NSWindowController, NSOutlineViewDelegate, NSOutl |
|
|
|
switch menuItem.tag { |
|
|
|
case MenuItemTagRevealInFinder: |
|
|
|
if selectedEntries.isEmpty { return false } |
|
|
|
return !selectedEntries.filter { FileManager.default.fileExists(atPath: $0.url.path) }.isEmpty |
|
|
|
return selectedEntries.contains { FileManager.default.fileExists(atPath: $0.url.path) } |
|
|
|
case MenuItemTagDelete, MenuItemTagPlay, MenuItemTagPlayInNewWindow: |
|
|
|
return !selectedEntries.isEmpty |
|
|
|
case MenuItemTagSearchFilename: |
|
|
0 comments on commit
e92a3ee