mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-11 11:25:57 +03:00
Fix Sparkle availability
This commit is contained in:
parent
08c972839d
commit
9b84348d81
@ -2,6 +2,15 @@
|
||||
Change Log
|
||||
==========================
|
||||
|
||||
unreleased
|
||||
--------------------------
|
||||
|
||||
### Fixes
|
||||
|
||||
- [AppStore ver.] Fix an issue where the options for the software updator for the non AppStore were wrongly displayed in General preferences pane.
|
||||
|
||||
|
||||
|
||||
3.4.0 (251)
|
||||
--------------------------
|
||||
|
||||
|
@ -322,7 +322,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
@IBAction func showAboutPanel(_ sender: Any?) {
|
||||
|
||||
var options: [NSApplication.AboutPanelOptionKey: Any] = [:]
|
||||
#if !canImport(Sparkle)
|
||||
#if APPSTORE
|
||||
// Remove Sparkle from 3rd party code list
|
||||
if let creditsURL = Bundle.main.url(forResource: "Credits", withExtension: "html"),
|
||||
let attrString = try? NSMutableAttributedString(url: creditsURL, documentAttributes: nil),
|
||||
|
@ -44,7 +44,7 @@ final class GeneralPaneController: NSViewController {
|
||||
super.viewDidLoad()
|
||||
|
||||
// remove updater options if no Sparkle provided
|
||||
#if !canImport(Sparkle)
|
||||
#if APPSTORE
|
||||
for subview in self.view.subviews where subview.tag < 0 {
|
||||
subview.removeFromSuperview()
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ extension WebDocumentViewController: WKNavigationDelegate {
|
||||
/// receive web content
|
||||
func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!) {
|
||||
|
||||
#if !canImport(Sparkle)
|
||||
#if APPSTORE
|
||||
webView.apply(styleSheet: ".Sparkle { display: none }")
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user