• R/O
  • HTTP
  • SSH
  • HTTPS

KCD: Commit

main code repository.


Commit MetaInfo

Revision127f6d561a45c79e630b251d1ff2ef89a3d5ad06 (tree)
Time2018-08-13 09:33:16
Authormasakih <masakih@user...>
Commitermasakih

Log Message

不要となっていたプロパティを削除

Change Summary

Incremental Difference

--- a/KCD/AppDelegate.swift
+++ b/KCD/AppDelegate.swift
@@ -117,11 +117,6 @@ final class AppDelegate: NSObject {
117117
118118 return windowManager.createNewBrowser()
119119 }
120-
121- @objc func fire(_ timer: Timer) {
122-
123- updaters.forEach { $0() }
124- }
125120 }
126121
127122 // MARK: - IBActions
@@ -277,12 +272,10 @@ extension AppDelegate: NSApplicationDelegate {
277272 exit(0)
278273 }
279274
280- NSUserNotificationCenter.default.delegate = self
281- Timer.scheduledTimer(timeInterval: 0.33,
282- target: self,
283- selector: #selector(AppDelegate.fire(_:)),
284- userInfo: nil,
285- repeats: true)
275+ Timer.scheduledTimer(withTimeInterval: 0.33, repeats: true) { [weak self] _ in
276+
277+ self?.updaters.forEach { $0() }
278+ }
286279 }
287280
288281 func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
Show on old repository browser