• R/O
  • HTTP
  • SSH
  • HTTPS

KCD: Commit

main code repository.


Commit MetaInfo

Revisioncef7826d909785a0232f86b50792e7d2a3abeae0 (tree)
Time2018-08-14 02:04:23
Authormasakih <masakih@user...>
Commitermasakih

Log Message

キャッシュを積極的に使うように修正

Change Summary

Incremental Difference

--- a/KCD/UpgradableShipsWindowController.swift
+++ b/KCD/UpgradableShipsWindowController.swift
@@ -62,9 +62,9 @@ final class UpgradableShipsWindowController: NSWindowController {
6262 }
6363
6464 if showsExcludedShipInUpgradableList == false,
65- excludeShiIDs.count != 0 {
65+ excludeShiIDsCache.count != 0 {
6666
67- excludeShip = .not(NSPredicate(#keyPath(Ship.id), valuesIn: excludeShiIDs))
67+ excludeShip = .not(NSPredicate(#keyPath(Ship.id), valuesIn: excludeShiIDsCache))
6868 }
6969
7070 switch (levelOnePredicate, excludeShip) {
@@ -108,9 +108,9 @@ final class UpgradableShipsWindowController: NSWindowController {
108108 return ApplicationDirecrories.support.appendingPathComponent("ExcludeShipIDs")
109109 }
110110
111- override func windowDidLoad() {
111+ override func windowWillLoad() {
112112
113- super.windowDidLoad()
113+ super.windowWillLoad()
114114
115115 excludeShiIDsCache = excludeShiIDs
116116 }
Show on old repository browser