mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 09:14:06 +01:00
Add support for sharing to MarsEdit 5. Fix #4289.
This commit is contained in:
parent
f468585487
commit
4d5b749a65
@ -13,6 +13,7 @@
|
||||
<key>com.apple.security.temporary-exception.apple-events</key>
|
||||
<array>
|
||||
<string>com.red-sweater.marsedit4</string>
|
||||
<string>com.red-sweater.marsedit5</string>
|
||||
</array>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
|
@ -29,6 +29,7 @@
|
||||
<key>com.apple.security.temporary-exception.apple-events</key>
|
||||
<array>
|
||||
<string>com.red-sweater.marsedit4</string>
|
||||
<string>com.red-sweater.marsedit5</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
@ -15,7 +15,7 @@ final class SendToMarsEditCommand: SendToCommand {
|
||||
let title = "MarsEdit"
|
||||
let image: RSImage? = AppAssets.marsEditIcon
|
||||
|
||||
private let marsEditApps = [UserApp(bundleID: "com.red-sweater.marsedit4"), UserApp(bundleID: "com.red-sweater.marsedit")]
|
||||
private let marsEditApps = [UserApp(bundleID: "com.red-sweater.marsedit5"), UserApp(bundleID: "com.red-sweater.marsedit4"), UserApp(bundleID: "com.red-sweater.marsedit")]
|
||||
|
||||
func canSendObject(_ object: Any?, selectedText: String?) -> Bool {
|
||||
appToUse() != nil
|
||||
@ -62,7 +62,9 @@ private extension SendToMarsEditCommand {
|
||||
|
||||
func appToUse() -> UserApp? {
|
||||
|
||||
marsEditApps.forEach{ $0.updateStatus() }
|
||||
for app in marsEditApps {
|
||||
app.updateStatus()
|
||||
}
|
||||
|
||||
for app in marsEditApps {
|
||||
if app.isRunning {
|
||||
|
Loading…
Reference in New Issue
Block a user