From 550cf3261cc59200f8fee559855110629de52e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A3=92=E6=A3=92=E5=BD=AC=5FBinboy?= Date: Thu, 16 Sep 2021 08:26:46 +0800 Subject: [PATCH] Apply suggestions from code review if the isInstalledOnly is on, we filter with `AND` instead of `OR` Co-authored-by: Matt Kiazyk --- Xcodes/Frontend/XcodeList/XcodeListView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xcodes/Frontend/XcodeList/XcodeListView.swift b/Xcodes/Frontend/XcodeList/XcodeListView.swift index 48f652f..101010f 100644 --- a/Xcodes/Frontend/XcodeList/XcodeListView.swift +++ b/Xcodes/Frontend/XcodeList/XcodeListView.swift @@ -32,7 +32,7 @@ struct XcodeListView: View { } if isInstalledOnly { - xcodes = appState.allXcodes.filter { $0.installState.installed } + xcodes = xcodes.filter { $0.installState.installed } } return xcodes