Permalink
Browse files

Fix a misuse of `filter(where:)`.

  • Loading branch information...
alejx committed Feb 7, 2019
1 parent 1a3bcdf commit e92a3eece960c79d4aa6cc62cd7c5074029115dd
Showing with 1 addition and 1 deletion.
  1. +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

Please sign in to comment.