mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-10-05 23:17:11 +03:00
Update Sparkle.framework
This commit is contained in:
parent
76724e1b37
commit
a64b5f61b6
@ -39,7 +39,7 @@
|
||||
<li>Update help contents.</li>
|
||||
<li><span class="trivial">trivial</span>: Sort themes alphabetically regardless whether they are bundled or not.</li>
|
||||
<li><span class="trivial">trivial</span>: Make the timing to trim trailing spaces shorter.</li>
|
||||
<li><span class="trivial">trivial</span>: Tweak Japanese localization in Preferences.</li>
|
||||
<li><span class="trivial">trivial</span>: Tweak Japanese localization in Preferences.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
<li>ヘルプをアップデート</li>
|
||||
<li><span class="trivial">trivial</span>: テーマがバンドルされたものかどうかに関わらずすべてアルファベット順に並ぶように変更</li>
|
||||
<li><span class="trivial">trivial</span>: 行末の空白を自動で削除するタイミングを調整</li>
|
||||
<li><span class="trivial">trivial</span>: 環境設定の日本語ローカライズを微調整</li>
|
||||
<li><span class="trivial">trivial</span>: 環境設定の日本語ローカライズを微調整</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit ad4ec8e3ab096c66f5d8ab5b180a44eb330f26be
|
||||
Subproject commit 119766a650672e81a8ae9fa399bf20ee32ed7f51
|
Loading…
Reference in New Issue
Block a user