}
if showsExcludedShipInUpgradableList == false,
- excludeShiIDs.count != 0 {
+ excludeShiIDsCache.count != 0 {
- excludeShip = .not(NSPredicate(#keyPath(Ship.id), valuesIn: excludeShiIDs))
+ excludeShip = .not(NSPredicate(#keyPath(Ship.id), valuesIn: excludeShiIDsCache))
}
switch (levelOnePredicate, excludeShip) {
private var excludeShipIDsSaveURL: URL {
- return ApplicationDirecrories.support.appendingPathComponent("ExcludeShipIDs")
+ return ApplicationDirecrories.shared.support.appendingPathComponent("ExcludeShipIDs")
}
- override func windowDidLoad() {
+ override func windowWillLoad() {
- super.windowDidLoad()
+ super.windowWillLoad()
excludeShiIDsCache = excludeShiIDs
}