OSDN Git Service

キャッシュを積極的に使うように修正
authormasakih <masakih@users.sourceforge.jp>
Mon, 13 Aug 2018 17:04:23 +0000 (02:04 +0900)
committermasakih <masakih@users.sourceforge.jp>
Mon, 13 Aug 2018 17:04:23 +0000 (02:04 +0900)
KCD/UpgradableShipsWindowController.swift

index b306f92..e597206 100644 (file)
@@ -62,9 +62,9 @@ final class UpgradableShipsWindowController: NSWindowController {
         }
         
         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) {
@@ -108,9 +108,9 @@ final class UpgradableShipsWindowController: NSWindowController {
         return ApplicationDirecrories.support.appendingPathComponent("ExcludeShipIDs")
     }
     
-    override func windowDidLoad() {
+    override func windowWillLoad() {
         
-        super.windowDidLoad()
+        super.windowWillLoad()
         
         excludeShiIDsCache = excludeShiIDs
     }