From a64b5f61b66f7c4223248d2ce2d36cd4ef16be34 Mon Sep 17 00:00:00 2001 From: 1024jp <1024jp@wolfrosch.com> Date: Wed, 14 Jul 2021 10:58:54 +0900 Subject: [PATCH] Update Sparkle.framework --- .../Contents/Resources/en.lproj/pgs/releasenotes.html | 2 +- .../Contents/Resources/ja.lproj/pgs/releasenotes.html | 2 +- CotEditor/Sources/UpdaterManager.swift | 10 +++------- Frameworks/Sparkle | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html b/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html index a68f6c050..1ca6d6a02 100644 --- a/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html +++ b/CotEditor/CotEditor.help/Contents/Resources/en.lproj/pgs/releasenotes.html @@ -39,7 +39,7 @@
  • Update help contents.
  • trivial: Sort themes alphabetically regardless whether they are bundled or not.
  • trivial: Make the timing to trim trailing spaces shorter.
  • -
  • trivial: Tweak Japanese localization in Preferences.
  • +
  • trivial: Tweak Japanese localization in Preferences.
  • diff --git a/CotEditor/CotEditor.help/Contents/Resources/ja.lproj/pgs/releasenotes.html b/CotEditor/CotEditor.help/Contents/Resources/ja.lproj/pgs/releasenotes.html index c30f0ef69..4cd5cc78d 100644 --- a/CotEditor/CotEditor.help/Contents/Resources/ja.lproj/pgs/releasenotes.html +++ b/CotEditor/CotEditor.help/Contents/Resources/ja.lproj/pgs/releasenotes.html @@ -43,7 +43,7 @@
  • ヘルプをアップデート
  • trivial: テーマがバンドルされたものかどうかに関わらずすべてアルファベット順に並ぶように変更
  • trivial: 行末の空白を自動で削除するタイミングを調整
  • -
  • trivial: 環境設定の日本語ローカライズを微調整
  • +
  • trivial: 環境設定の日本語ローカライズを微調整
  • diff --git a/CotEditor/Sources/UpdaterManager.swift b/CotEditor/Sources/UpdaterManager.swift index c05cdde64..d4c28ce90 100644 --- a/CotEditor/Sources/UpdaterManager.swift +++ b/CotEditor/Sources/UpdaterManager.swift @@ -8,7 +8,7 @@ // // --------------------------------------------------------------------------- // -// © 2015-2020 1024jp +// © 2015-2021 1024jp // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -85,10 +85,6 @@ final class UpdaterManager: NSObject, SPUUpdaterDelegate { /// setup Sparkle func setup() { - guard let updater = self.controller.updater else { - return assertionFailure("No SPUUpdater instance could be obtained.") - } - // insert "Check for Updates…" menu item guard let applicationMenu = MainMenu.application.menu else { preconditionFailure("No menu could be found to attach update menu item.") @@ -96,11 +92,11 @@ final class UpdaterManager: NSObject, SPUUpdaterDelegate { let menuItem = NSMenuItem(title: "Check for Updates…".localized, action: #selector(SPUUpdater.checkForUpdates), keyEquivalent: "") - menuItem.target = updater + menuItem.target = self.controller.updater applicationMenu.insertItem(menuItem, at: 1) // lock update check interval to daily - updater.updateCheckInterval = TimeInterval(60 * 60 * 24) + self.controller.updater.updateCheckInterval = TimeInterval(60 * 60 * 24) } diff --git a/Frameworks/Sparkle b/Frameworks/Sparkle index ad4ec8e3a..119766a65 160000 --- a/Frameworks/Sparkle +++ b/Frameworks/Sparkle @@ -1 +1 @@ -Subproject commit ad4ec8e3ab096c66f5d8ab5b180a44eb330f26be +Subproject commit 119766a650672e81a8ae9fa399bf20ee32ed7f51