mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-25 09:11:13 +01:00
Fix logic in SendToMarsEditCommand where it finds the app to talk to. A running app takes precedence.
This commit is contained in:
parent
39d6086e0c
commit
f9c5c5ad60
@ -39,11 +39,15 @@ private extension SendToMarsEditCommand {
|
||||
|
||||
func appToUse() -> UserApp? {
|
||||
|
||||
marsEditApps.forEach{ $0.updateStatus() }
|
||||
|
||||
for app in marsEditApps {
|
||||
app.updateStatus()
|
||||
if app.isRunning {
|
||||
return app
|
||||
}
|
||||
}
|
||||
|
||||
for app in marsEditApps {
|
||||
if app.existsOnDisk {
|
||||
return app
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user